i have found some script (for gemini i think) wich can help me to check if cccam is responding or not responding...
if not responding, restart cccam... i have some problem with it...
where should i put this script ? (there is no /var/script in PLI)
i use an PLI Jade maxvar latest version ...
this script need an cron tab also, to run it every xxx time...
here is the crontab
*/5 * * * * /script/checknewcs >>/log/checknewcs.log 2>&1
here the script
#!/bin/sh CHECKNAME="test.txt" IP="127.0.0.1" PORT="16000" echo info|nc $IP $PORT >>/tmp/$CHECKNAME set $(ls -s /tmp/$CHECKNAME) if [ "$1" = "0" ]; then echo " CCcam is not running, Restarting..." /var/bin/CCcam restart else echo " CCcam is running" fi rm /tmp/$CHECKNAME exit [url=null]null[/url]
can someone help me please...
thanks
ced