How to "Oscam check script"
As more and more peeps are required to take the plunge with oscam here is a simple script which will check to see if oscam is running. If oscam has stopped running it will restart it automatically.


process=`ps auxwww | grep oscam | grep -v grep | awk '{print $1}'`
if [ -z "$process" ]; then
echo "Couldn't find oscam running. Restarting server-binary" >> /var/log/oscam.check
nohup /usr/local/bin/oscam >> /var/log/oscam.log &
echo "oscam is still OK!" >> /var/log/oscam.check

succesfully tested this under a linux environment and can confirm it works 100%.You must however ensure that your oscam binary is indeed located in /usr/local/bin. If it isnt amend the script accordingly. Just configure cron to run the script say every 5 minutes & voila