Some time ago I posted a crontab entry that starts up the mud if it is down. That crontab entry works fine on a SGI computer, now I have moved to a linux computer and had to change my crontab entry (because of the other ps options). It is now: (must be 1 line) 0,5,10,15,20,25,30,35,40,45,50,55 * * * * if [ -z "`ps -x|grep -v grep|grep circle`" ]; then cd ~user/muddir; bin/circle 4000 >& syslog& fi You see I curently don't use autorun, if you do it has to be something like: (again on 1 line) 0,5,10,15,20,25,30,35,40,45,50,55 * * * * if [ -z "`ps -x|grep -v grep|grep circle`" ] && [ -z "`ps -x|grep -v grep|grep autorun`"]; then cd ~user/muddir; autorun& fi (this only starts autorun if there is no circle and no autorun running, it checks every 5 minutes) I keep this line in a file named .crontab in my home dir, to activate it I use "crontab .crontab" but there are other ways of doing this. There are no other scripts needed. All output is mailed to you (so make sure there is no output) ;) You can check your current crontab entries with "crontab -l". Greeting, Jaco
This archive was generated by hypermail 2b30 : 12/18/00 PST