-
Member
Beginner
- Rep Power
- 0
script oscam
salut are cineva un script care sa verifice oscam-ul pe DEBIAN
-
Standard RSP member
- Rep Power
- 69
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 &
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules