How to disable debugging in this script?

There are 5 replies in this Thread which was already clicked 909 times. The last Post () by herr flick.

  • 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

  • i think that script is not problem debug scrip which you are mean is generated by cccam cfg , just go in cccam cfg and disable debug
    DEBUG : no
    #DEBUG FILE : /var/cccamlog

  • Tried that without success. The script overide I think, as it start cccam with -dv command, look below:


    # This method starts CCcam
    start_cam ()
    {
    $CAMDIR/$CAM -dv >> /$LOGDIR/debug.txt &
    sleep 5
    }

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

Participate now!

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