Results 1 to 3 of 3

Thread: script oscam

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member Beginner
    Join Date
    08 Mar 2010
    Posts
    10
    Mentioned
    0 Post(s)
    Rep Power
    0

    Default script oscam

    salut are cineva un script care sa verifice oscam-ul pe DEBIAN

  2. #2
    Standard RSP member
    Join Date
    10 May 2007
    Posts
    139
    Mentioned
    1 Post(s)
    Rep Power
    69

    Default

    Salut, l-am gasit in alta parte, poate te ajuta:

    #!/bin/bash

    founds=`tail -10 /emu/log/oscam.log | grep "not found" | wc -l`
    founds2=`tail -10 /emu/log/oscam.log | grep "exit with signal" | wc -l`
    founds3=`tail -20 /emu/log/oscam.log | grep "timeout" | wc -l`

    if [ $founds -gt 3 ] || [ $founds2 -ge 1 ] || [ $founds3 -ge 1 ]
    then
    echo "Error found, restart...";
    /usr/bin/killall -9 oscam-svn2913-x86_64-pc-linux
    /emu/oscam-svn2913-x86_64-pc-linux -d8 -c /var/etc &
    fi

    exit



    Bafta, si te rog sa scrii aici daca functioneaza, sa stim si noi ce si cum.

  3. #3
    Standard RSP member Diablo1's Avatar
    Join Date
    29 Mar 2009
    Location
    Austria - TM
    Posts
    1,869
    Mentioned
    0 Post(s)
    Rep Power
    78

    Default

    Da dar ai grija sa treci ce versiune ai de oscam exact ca la tine in bin
    .
    /usr/bin/killall -9 oscam-svn2913-x86_64-pc-linux
    /emu/oscam-svn2913-x86_64-pc-linux -d8 -c /var/etc &

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •