Dies ist eine mobil optimierte Seite, die schnell lädt. Wenn Sie die Seite ohne Optimierung laden möchten, dann klicken Sie auf diesen Text.

How-To script check/start oscam su enigma2 oe1.6 (nemesis)

jjk2

Freak
Registriert
20. Oktober 2012
Beiträge
216
Reaktionspunkte
44
Punkte
28
ciao a tutti.
non ho problemi particolari però vorrei avere uno script che fa il check per verificare se oscam è attiva e nel caso avviarla.
ho letto tutto quello che c'è sul forum ma non ci riesco. ho visto anche il whatchdog etc...
ho provato vari script sui vps e quelli funzionano ma su nemesis non vanno, sembra proprio che gli script funzionino in modo differente

grazie a tutti
 
AW: script check/start oscam su enigma2 oe1.6 (nemesis)


Hi puoi Provare Questa

Du musst dich Anmelden oder Registrieren um diesen link zusehen!


#!/bin/sh
#
FOO=”/tmp/_tmp”
LOGIN=”root”
PW=”xx”
IP=”192.168.1.xx”
PORT=”16002″

STR=”TITLE>”
#
curl -s –digest -o – -u $LOGIN:$PW “http://$IP:$PORT/status.html?hideidle=0″ | grep “$STR” > $FOO
printf “Checking for ERRORS …\n”;
if [ -s $FOO ]; then
printf “\033[37;32mOscam working OK\033[37;40m\n”;
else
printf “\033[37;31mOscam ERROR!\033[37;40m\n”;
/usr/local/bin/oscam -b > /dev/null
fi
rm -f $FOO
exit 0
 
Für die Nutzung dieser Website sind Cookies erforderlich. Du musst diese akzeptieren, um die Website weiter nutzen zu können. Erfahre mehr…