LFC4EVER thanks, my bin is in /usr/bin/
So did you get then?
Bash
#!/bin/bash
founds=`tail -10 /var/log/oscam/oscam.log | grep "not found" | wc -l`
founds2=`tail -10 /var/log/oscam/oscam.log | grep "exit with signal" | wc -l`
founds3=`tail -20 /var/log/oscam/oscam.log | grep "timeout" | wc -l`
if [ $founds -gt 3 ] || [ $founds2 -ge 1 ] || [ $founds3 -ge 1 ]
then
echo "Error found, restart...";
/usr/bin/killall -9 oscam
/usr/bin/oscam &@@@WCF_PRE_LINEBREAK@@@fi
exit
Display More
thanks