Linux VPS problem
#10

I know what the problem is. I can't use samp within an shell file. This is my shell file:

Код:
#!/bin/sh


if ps -a | grep samp03 > /dev/null
then 
cd /root/samp03
nohup ./samp03svr > samp.out 2> samp.err < /dev/null &
echo started
else
echo already started
exit
fi
Does anyone has an good shell file?
Reply


Messages In This Thread
Linux VPS problem - by sentmen - 09.07.2011, 22:04
Re: Linux VPS problem - by darkrider366 - 09.07.2011, 22:11
Re: Linux VPS problem - by sentmen - 09.07.2011, 22:33
Re: Linux VPS problem - by linuxthefish - 09.07.2011, 22:41
Re: Linux VPS problem - by sentmen - 09.07.2011, 23:31
Re: Linux VPS problem - by linuxthefish - 11.07.2011, 00:45
Re: Linux VPS problem - by xxmitsu - 11.07.2011, 02:48
Re: Linux VPS problem - by Vipero - 11.07.2011, 11:04
Re: Linux VPS problem - by sentmen - 16.07.2011, 16:51
Re: Linux VPS problem - by sentmen - 17.07.2011, 12:36

Forum Jump:


Users browsing this thread: 1 Guest(s)