OSCam execute script: no defined script ; .....webif

There is 1 reply in this Thread which was already clicked 2,068 times. The last Post () by musogeek.

  • Hi I wanted to ask how do I get a script that restarts oscam when it crashes, for example when I am out "rejected group (120 ms) (0/0/0/0) (no matching reader)." (Does anyone know what this error it's?), However restarting everything back running!
    I've tried to put one on but webif of oscam is out => OSCam execute script: no defined script -> Status: not found -> returnCode: 0
    Surely I'm wrong!
    I wanted to know what is the path to put the script and how do I activate it?
    Using oscam-1.20-r8327-unstable_svn linux pc


    This is a script. it's correctly??


    #!/bin/sh
    #change the line below with the path of your oscam.log
    oscamlog="/emu/log/oscam.log"
    reject_c=`tail $oscamlog|grep "rejected group"|wc -l`
    if [ $reject_c -gt 8 ]
    then
    echo "Exceeded rejected pattern found.System reboot at -->" `date` >> /var/log/rejected_check.log
    /sbin/reboot
    fi
    exit 0

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!