Hi
I do not think the file OscamCkeck.sh above is good my Pc 0scam can do a control every five minutes on my linux pc (my crontab contains the command * / 5 **** root / var / script / OscamCkeck sh.)
I note as a directory (ccamlog) in / var / ccamlog / Osacmckeck.h, while I do not see this directory in my linux
that must be done before I make a stupidity changing anything ..
thousand excuses for the translation
......file on my pc oscam
#!/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/cccamlog/oscam.check
echo && date >>/var/cccamlog/oscam.check
/usr/local/bin/oscam >> /var/cccamlog/Oscam.log &
else echo "Oscam is still OK!" >> /var/cccamlog/oscam.check
fi
...
whereas in /var / script / oscamckeck.sh
i see OscamCkeck.sh and I do not have / var / cccamlog / oscam.ckeck