This check script detects when oscam web-interface is not responding anymore and when its not, oscam is started again.
Guide how to implement this is in post #4
Bash
#!/bin/sh
#
FOO=”/tmp/_tmp”
LOGIN=”root”
PW=”xx”
IP=”192.168.1.xx”
PORT=”16002″
STR=”TITLE>”
#
curl -s –digest -o – -u $LOGIN:$PW “http://$IP:$PORT/status.html?hideidle=0″ | grep “$STR” > $FOO
printf “Checking for ERRORS …\n”;
if [ -s $FOO ]; then
printf “\033[37;32mOscam working OK\033[37;40m\n”;
else
printf “\033[37;31mOscam ERROR!\033[37;40m\n”;
/usr/local/bin/oscam -b > /dev/null
fi
rm -f $FOO
exit 0
Display More