oscam cccam script problem

There are 5 replies in this Thread which was already clicked 2,386 times. The last Post () by master G.

  • Hi guys,
    my cccam start automatically after the system boots,but oscam doesn't..
    I made this script and put it in /bin/emu


    <<<<<<>>>>>>
    #! /bin/sh


    /usr/local/bin/oscam -b


    /usr/local/bin/cccam -d
    <<<<<<>>>>>>


    and in rc.local
    <<<<<<>>>>>>
    /bin/emu
    exit 0
    <<<<<<>>>>>>


    I can confirm oscam and cccam are in /usr/local/bin/
    cccam starts, oscam doesn't
    if I start the process manually oscam works.
    any idea?
    thank you

    • Official Post

    Try these two separate check scripts, place in /var/script.


    Bash
    #!/bin/sh 
    process=`ps auxwww | grep CCcam.x86 | grep -v grep | awk '{print $1}'`
    if [ -z '$process' ]; then
    echo "Couldn't find CCcam.x86 running. Restarting server-binary" >> /var/cccamlog/cccam.check 
    echo && date >>/var/cccamlog/cccam.check
    /usr/local/bin/CCcam.x86 -d >> /var/cccamlog/CCcam.log & 
    else echo "CCcam.x86 is still OK!" >> /var/cccamlog/cccam.check 
    fi


    Bash
    #!/bin/sh 
    process=`ps auxwww | grep oscam | grep -v grep | awk '{print $1}'`
    if [ -z '$process' ]; then
    echo "Couldn't find Oscam running. Restarting server-binary" >> /var/cccamlog/oscam.check 
    echo && date >>/var/cccamlog/oscam.check
    /usr/local/bin/oscam >> /var/cccamlog/Oscam.log & 
    else echo "Oscam is still OK!" >> /var/cccamlog/oscam.check 
    fi
    • Official Post


    There are already oscam & CCcam check scripts included in emu/script/
    If they are not running then first try this
    [h=3]How to - Debian 6 Running scripts succesfully[/h]
    Check all scripts have 755 permissions if still no joy then try this in rc.local



    Bash
    #!/bin/sh -e
    sleep 20
    /usr/local/bin/oscam -b
    sleep 10
    /usr/local/bin/CCcam.x86
    exit 0


    Any check scripts you add yourself make then run by editing ect/crontab instead of rc.local



  • I resolved editing rc.local as you said.
    Thank you!

Your resource for Linux TV servers and smart card readers.

Find software downloads, drivers, and support for server setup and card-sharing configurations. Set up a Linux-based TV server. Access downloads and support for server software and USB card readers for advanced TV reception and management