You are on page 1of 1

In this article i will present you OScam check script that i use and works witho ut any problems.

I use it on Ubuntu but it was 100% reliable on Fedora too. Scri pt simply checks if process oscam is still present in your system. If not, scrip t restarts your OScam. Make sure that your OScam executable is named oscam . It als o needs to have 755 permissions! I hope that this copy/pasted script works OK. I f not, please leave a comment! #!/bin/sh # FOO="/tmp/_tmp" LOGIN="root" PW="dreambox" IP="192.168.1.155" 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

You might also like