Posts by blackieblack

    Hi!
    Just finished the Debian 6 and Cccam 2.2.1 tutorial. But I would like to disable the debug function that starts always with the cccam script included in the tutorial,


    I guess it has to to with the "-dv" in the script.
    Here is the script:


    #Setting variables
    CAMNAME="CCcam Server"
    CAMDIR="/emu/cccam"
    LOGDIR="/emu/log"
    # end


    # Checking what CCcam version is used on this computer.
    if [ ! -f $CAMDIR/CCcam.x86_64 ]
    then
    CAM="CCcam.x86"
    else
    CAM="CCcam.x86_64"
    fi


    # Checking for pid file existance
    if [ ! -f $CAMDIR/cccam.pid ]
    then
    echo "No pidfile exists, Creating PID for CCcam"
    else
    rm $CAMDIR/cccam.pid
    echo "Pidfile allready found, Removing old pidfile"
    fi


    pidof $CAM > $CAMDIR/cccam.pid
    PID=$(exec cat $CAMDIR/cccam.pid)


    # This method starts CCcam
    start_cam ()
    {
    $CAMDIR/$CAM -dv >> /$LOGDIR/debug.txt &
    sleep 5
    }
    # This method stops CCcam
    stop_cam ()
    {
    kill -9 $PID
    sleep 5
    }
    case "$1" in
    start)
    echo "[SCRIPT] $1: $CAMNAME"
    start_cam
    ;;
    stop)
    echo "[SCRIPT] $1: $CAMNAME"
    stop_cam
    ;;
    restart)
    echo "Restarting $CAMNAME"
    stop_cam
    start_cam
    ;;
    *)
    "$0" stop
    exit 1
    ;;
    esac
    exit 0

    Hi there!
    Just finished the "Automated CCcam 2.2.1 Install Package For Debian 6" guide. And all works great. But I would like to have an automatic restart of CCcam every morning at 4am. I tried to add: "00 04 * * * killall CCcam.x86 && /emu/cccam/CCcam.x86" in /etc/contrab without succses. So I need some help here :-)


    cheers,