help to install oscam restart script

There are 36 replies in this Thread which was already clicked 9,061 times. The last Post () by hergli9.

  • hello
    i have a problem because my oscam server crashes about once a day, have to reboot it by hand or telnet.
    there is a script to restart oscam.
    but its a bit beyond my skills.
    don,t know where to start, could somebody help out please.
    the script is this http://linuxsat-support.com/os…w-oscam-check-script.html


    the server is dm500, image evolution 2.5.
    what do you mean?
    thanks
    el pirate:spiderman:

  • thanks m8
    i cant find any cron business on my dream.
    the only thing i find is crontab busybox with dcc ftp in my dream.
    any idea where to look, maybe my image has no cron manager?
    thanks
    el pirate

  • yeah crontab is the feature . you setup in there but on some images there is no front end or gui


    telnet to the box and type "crontab -e" then your cron task there in usual format


    new2

    Dont forget to hit the thanks button!!!!!!!!!!!!!



    :41_002:



    Some articles may discuss topics that are illegal, so this information is provided for educational purposes only, your use of the content, downloads and files, or any part thereof, is made solely at your own risk and responsibility. Viewing Pay TV without a valid subscription is illegal. !! Linuxsat-Support.com cannot be held responsible for the content of any information stored or posted on this forum.

  • i think this image has no cron built in. now
    can i install cron manually to my image?
    or are there images they have cron built in?
    thanks
    el piratebeer10

  • what image are you using ??


    try pli jade 3 enigma 1

    Dont forget to hit the thanks button!!!!!!!!!!!!!



    :41_002:



    Some articles may discuss topics that are illegal, so this information is provided for educational purposes only, your use of the content, downloads and files, or any part thereof, is made solely at your own risk and responsibility. Viewing Pay TV without a valid subscription is illegal. !! Linuxsat-Support.com cannot be held responsible for the content of any information stored or posted on this forum.

  • yes amigo, i tried pli jade image and go to "services to run" (system settings)
    and here is crond smiling hehe
    i start it and try a telnet session now, go for "crontab -e" and here we go ready to put the script in!


    about the script i want, it is to restart the cam (oscam) after a crash, cause its crashing sometimes.
    i found about 10 diferent versions strolling around with googgle, so i am not to sure what to do now.


    could you help out a bit?
    do you have to know where oscam is located?
    what do you mean?
    thanks el pirate:spiderman:

  • hi amigos,
    its all prepared for putting this script in.
    where is this script to put in?
    is it ok with telnet?
    could you put the script here on display, should be of interest for more people i think.
    thanks for
    el pirate



    could anybody ?

  • hi m8s
    this script from new2linux, thanks


    #!/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/log/oscam.check
    nohup /usr/local/bin/oscam >> /var/log/oscam.log &
    else
    echo "oscam is still OK!" >> /var/log/oscam.check
    fi


    succesfully tested this under a linux environment and can confirm it works 100%.You must however ensure that your oscam binary is indeed located in /usr/local/bin. If it isnt amend the script accordingly. Just configure cron to run the script say every 5 minutes & voila


    new2



    my oscam is located /var/bin
    my box is a dm500 e1
    image open pli 3


    how would the script look like oscam is on /var/bin
    thank u
    el pirate

  • pirate .


    1st to do is copy and paste this -


    #!/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/log/oscam.check
    nohup /var/bin/oscam >> /var/log/oscam.log &
    else
    echo "oscam is still OK!" >> /var/log/oscam.check
    fi



    and save it as filename oscamcheck.sh


    transfer that file to your dm500 to say /var/bin


    give oscamcheck.sh attributes 755 with command chmod 755 as usual.


    ok now for the crontab bit


    telnet into box as root user and use command crontab -e



    then you simply do your variables for script to run every fiveminutes and give location of your script which in your case is /var/bin/oscamcheck.sh


    good luck amigo


    new2

    Dont forget to hit the thanks button!!!!!!!!!!!!!



    :41_002:



    Some articles may discuss topics that are illegal, so this information is provided for educational purposes only, your use of the content, downloads and files, or any part thereof, is made solely at your own risk and responsibility. Viewing Pay TV without a valid subscription is illegal. !! Linuxsat-Support.com cannot be held responsible for the content of any information stored or posted on this forum.

  • then you simply do your variables for script to run every fiveminutes and give location of your script which in your case is /var/bin/oscamcheck.sh


    thanks m8, i am getting there, any idea to where to find how to set up crontab?
    saludos
    el pirate

  • yes mate do via telnet as root user


    crontab -e method


    or maybe easier method for you goto cd /etc


    then type command vim /crontab


    then input


    */5 * * * * /var/bin/oscamcheck.sh ............ save and exit


    this will execute oscam check script every 5 minutes




    Also, here’s a quick guide to understaning the layout of cron:



    # MIN HOUR DAYOFMONTH MONTH DAYOFWEEK COMMAND
    5 * * * * echo 'Hello'



    regards


    new2

    Dont forget to hit the thanks button!!!!!!!!!!!!!



    :41_002:



    Some articles may discuss topics that are illegal, so this information is provided for educational purposes only, your use of the content, downloads and files, or any part thereof, is made solely at your own risk and responsibility. Viewing Pay TV without a valid subscription is illegal. !! Linuxsat-Support.com cannot be held responsible for the content of any information stored or posted on this forum.

  • thanks m8s but cazuelas kit is a daily (or nitetime) auto reboot.
    what i am after her is the reboot automatic after a crash (oscam)
    i am getting there, (hopefully) thanks you lads.


    theoreticly it should work soon
    thanks
    el pirate


    once its done i can upload a backup with oscam and cron auto reboot and ecm white list....
    tell me if you want
    bye

  • well it is a 500 amigo sorry
    saludos
    el pirate

  • hi m8s, i am still struggeling to put this script right.
    think i got everything done, but to put this script in per telnet.
    its just not doing it
    it says allways "permission denied"
    how to insert this per telnet?
    can anybody?


    */3 * * * * /var/bin/oscamcheck.sh


    the files are installed, cron is startet
    just this bit telnet is left.
    what i am doing wrong?
    thanks
    el pirate:34_002:

OSCam Support Forum

Configs, discussion, downloads and guides for OSCam Softcam.

Participate now!

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