E
esuo2
hi all
I have script to restart/check CCcam in /var/script/
then root containing cronjob in /var/etc/cron/crontabs/
then this is the script
change the script to look like my CCcam in /var/bin CCcam_2.1.3
then i telnet to box and type
i get
pls how do i know the script is working
thanks
I have script to restart/check CCcam in /var/script/
then root containing cronjob in /var/etc/cron/crontabs/
Code:
*/1 * * * * /var/script/CCcamCheck.sh
then this is the script
Code:
#!/bin/sh
if ps x |grep -v grep |grep -c CCcam >/dev/null
then
echo "cccam... ok"
else
echo "cccam... restarting"
/usr/bin/[COLOR="#00FF00"]CCcam_2.1.3[/COLOR] &
fi
change the script to look like my CCcam in /var/bin CCcam_2.1.3
then i telnet to box and type
Code:
crontab - e
i get
Code:
usage crontab -c [dir}etc...
pls how do i know the script is working
thanks