Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3

Thread: DM800: script to check if cccam is running

  1. #1
    Standard RSP member
    Join Date
    13 Feb 2007
    Location
    Earth
    Posts
    1,977
    Mentioned
    0 Post(s)
    Rep Power
    84

    Post DM800: script to check if cccam is running

    Script to check if cccam is running >>> DM 800

    the script does not need crond to start and is very simple






    cd /usr/bin
    while [ 1 ];
    do
    process=`ps auxwww | grep cccamd-real | grep -v grep | awk '{print $1}'`
    if [ -z "$process" ]; then
    echo "Couldn't find CCcam running. Restarting server-binary" >> /tmp/cccam.check
    /usr/bin/cccamd-real
    else
    echo "CCcam is still OK!" >> /dev/null
    fi
    done





    to start the script you must do the following steps

    1.
    - go to usr/bin and rename your existing CCcam_2011 to cccamd-real

    2.
    - upload the file CCcam_2011 that is attached to this post to /usr/bin and set attributes to 755

    3.
    -reboot dreambox





    download :

    http://rapidshare.de/files/46332440/...0S_HD.rar.html
    Don't dream your life - live your DREAMbox ! DON'T FORGET TO SAY '' THANKS '' Note: Viewing Pay TV without a valid subscription is illegal All the files available here are kept for experimental and educational purpose only!

  2. #2
    Standard RSP member
    Join Date
    30 Aug 2007
    Posts
    39
    Mentioned
    0 Post(s)
    Rep Power
    0

    Default Re: DM800: script to check if cccam is running

    Poti sa pui scriptul pe zshare te rog? Pe rapidshare, la mine cel putin, nu pot vedea cele 4 caractere de test.
    Am incercat m multe variante de script, dar imi tot da o eroare la final:
    Syntax error: "done" unexpected (expecting "fi")
    Sau pune exact cum e la tine. Ceva e aiurea.
    Am rulat pentru test cu comanda
    sh -v test.sh

    unde test.sh este:
    #!/bin/sh
    while [ 1 ]; do
    process=`ps auxwww | grep /usr/bin/CCcam_2011 | grep -v grep | awk '{print $1}'`
    if [ -z "$process" ]; then echo "Couldn't find CCcam running. Restarting server-binary" >> /tmp/cccam.check
    /usr/bin/CCcam_2011
    elif ! [ -z "$process" ]; then
    echo "CCcam is still OK!" >> /dev/null
    fi
    done
    Outputul este:
    #!/bin/sh
    while [ 1 ]; do
    process=`ps auxwww | grep /usr/bin/CCcam_2011 | grep -v grep | awk '{print $1}'`
    if [ -z "$process" ]; then echo "Couldn't find CCcam running. Restarting server-
    binary" >> /tmp/cccam.check
    /usr/bin/CCcam_2011
    elif ! [ -z "$process" ]; then
    echo "CCcam is still OK!" >> /dev/null
    fi
    done/usr/script/test.sh: 9: Syntax error: "done" unexpected (expecting "fi")

  3. #3
    Standard RSP member delta2k2's Avatar
    Join Date
    11 Apr 2008
    Location
    Fost mebru
    Posts
    2,523
    Mentioned
    0 Post(s)
    Rep Power
    88

    Default Re: DM800: script to check if cccam is running

    zShare link aici

    .
    Fost membru al acestui forum

Posting Permissions

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