ps -p `cat pid`
if [ $? = 1 ]
then
echo "Not Running."
else
echo "Running."
fi
ps -p `cat pid` > /dev/null 2>&1 && echo Running || echo "Not Running"
crontab -l
crontab /etc/crontab
crontab -e
*/1 * * * * root /usr/sv2/game/ && ./pidtest.sh &
*/1 * * * * root /usr/server/game/pidtest.sh > /dev/null
* * * * * /usr/sv2/game/pidtest.sh
sh pidtest.sh
then comes Running or he starts the servermailx(1)Cycrus said:how i can see my mails ? There is every "you have a new mail"
crontab -e
* * * * * /usr/pidtest.sh > /dev/null
cd /usr/server/
ps -p `cat /usr/server/pid` > /dev/null 2>&1 && echo "Running" || ./server