Post

Oscam Check Scripts

In this article i will present you OScam check script that i use and works without any problems. I use it on Ubuntu but it was 100% reliable on Fedora too. Script simply checks if process oscam is still present in your system. If not, script restarts your OScam. Make sure that your OScam executable is named “oscam”. It also needs to have 755 permissions! I hope that this copy/pasted script works OK. If 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
Facebook Notice for EU! You need to login to view and post FB Comments!

Powered by moviekillers.com.com