View Full Version : script oscam
salut are cineva un script care sa verifice oscam-ul pe DEBIAN
Salut, l-am gasit in alta parte, poate te ajuta:
#!/bin/bash
founds=`tail -10 /emu/log/oscam.log | grep "not found" | wc -l`
founds2=`tail -10 /emu/log/oscam.log | grep "exit with signal" | wc -l`
founds3=`tail -20 /emu/log/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-svn2913-x86_64-pc-linux
/emu/oscam-svn2913-x86_64-pc-linux -d8 -c /var/etc &
fi
exit
Bafta, si te rog sa scrii aici daca functioneaza, sa stim si noi ce si cum.
Da dar ai grija sa treci ce versiune ai de oscam exact ca la tine in bin
.
/usr/bin/killall -9 oscam-svn2913-x86_64-pc-linux
/emu/oscam-svn2913-x86_64-pc-linux -d8 -c /var/etc &
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.