Hi,
i made a little shell script which can do this. just copy and paste it into a texteditor and save it as scriptname.sh . then you can execute this via the terminal using sh scriptname.sh .
[CODE]
#!/bin/bash
OPTIONS="STOP START LIST 0200 REBOOT EXIT"
FMSLOCATION=/FileMaker\ Server\ 5.5/Filemaker\ Server\ Config.app/Contents/Resources/
select opt in $OPTIONS; do
if [ "$opt" = "STOP" ]; then
echo Forcing the Server to stop…
"$FMSLOCATION"/fmserverd STOP
elif [ "$opt" = "START" ]; then
echo Starting the Server…
"$FMSLOCATION"/fmserverd START
elif [ "$opt" = "LIST" ]; then
echo Listing served Files…
"$FMSLOCATION"/fmserverd FILES
elif [ "$opt" = "0200" ]; then
echo Replacing current Copy with 0200 backup…
ditto /Volumes/Fmpbackup/0200/ /Volumes/Fmpserver/FileMaker\ Server\ 5.5/
elif [ "$opt" = "REBOOT" ]; then
echo Rebooting the Computer…
sudo reboot
elif [ "$opt" = "EXIT" ]; then
echo see you next time…
exit
else
clear
echo couldnt understand that command…
fi
done
[/CODE]
make sure you change the $fmslocation to the same path as your filemaker server application. make sure you run this script with enough privileges. if it doesnt work at all fo some reason, i assume it is cause the format fuc*** up when i posted it here and you have some space character in there somewhere. just let me know and i will send you a zip file with the script.
regards,
Overrider
Comments are closed