problem with restart.sh
#1

dear people,

I want to use this to restat my serve when it's crashed:
#!/bin/sh
log=samp.log
dat=`date`
samp="/path/to/samp/server/samp03svr"
cd /path/to/samp/server

echo "${dat} watchdog script starting." >>${log}
while true; do
echo "${dat} Server exited, restarting..." >>${log}
mv /path/to/samp/server/server_log.txt /path/to/samp/server/logs/server_log.`date '+%m%d%y%H%M%S'`
${samp} >> $log
sleep 2
done

but when I typ nohub ./restart.sh & it says: nohup: cannot run command `./restart.sh': No such file or directory

What did I wrong?

please responde,

Team Ice Cold
Reply


Messages In This Thread
problem with restart.sh - by teamicecold - 14.12.2010, 18:12
Respuesta: problem with restart.sh - by jurgen - 29.01.2011, 22:07
Re: problem with restart.sh - by Ironboy500[TW] - 30.01.2011, 09:59

Forum Jump:


Users browsing this thread: 3 Guest(s)