Hi guys
im wanting to put a oscam check script on a ubuntu server
i know you normally set a cron job on dreambox but how do i do it on ubuntu server?
is the script as below:
Bash
#!/bin/sh
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 &
else
echo "oscam is still OK!" >> /var/log/oscam.check
fi
Display More
thanks!