Oscam script for several oscams

  • Suppose you have more than 1 oscam in yr server.
    Suppose You have 4 oscams nemed as bin oscam1 ... oscam4
    And you want to check them all in one script


    #!/bin/bash


    for (( i = 1 ; i <= 4 ; i++ ))
    do
    process=`ps auxwww | grep oscam$i | grep -v grep | awk '{print $1}'`
    if [ -z '$process' ]; then
    echo && date >> /etc/emu/log/ccam$i_restarts.log
    echo "Couldn't find oscam$i running. Restarting server-binary" >> /etc/emu/log/ccam$i_restarts.log
    sleep 2
    /etc/emu/script/oscam$i stop
    sleep 2
    /etc/emu/script/oscam$i start
    else echo `date "+%y/%m/%d %R Oscam$i is still OK!"`
    fi
    done


    Script will do a loop till checks all oscams
    If finds one stopped starts it othewise write log oscamx ok

Your resource for OSCam softcam

Find configs, downloads, tutorials, and support for setting up and optimizing this open-source card server with wide protocol compatibility. Master the versatile OSCam softcam. Access support, configs, tutorials, and downloads for open-source card sharing and multi-protocol server management.

Participate now!

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