script is checking the Oscam, also the CCcam.
is super good , and simple to use ,.....
no folder of trash, --with confirmation of status,-- something that you need to delete , (empty ) after each day.
#################################
#CCcamcheck.sh or ccheck.sh
##################################
IP="127.0.0.1"
ERRORLOG="/tmp/error.log"
#CCcam Options#########
CCCAMPORT="12000" #
CCCAMVERSION="_2.1.4" # here you modify according to your needs, that your box have
CCCAMPATH="/usr/bin/" #
#######################
#oscam Options#########
OSCAMPORT="34000" #
OSCAMVERSION="_0.99.4"#### or 1.10,....
OSCAMPATH="/usr/bin/" #
#######################
CCCAMCHECK=nc $IP $CCCAMPORT
OSCAMCHECK=nc $IP $OSCAMPORT
if [ $CCCAMCHECK = ]
then
echo && date >> $ERRORLOG
echo "CCcam is frozen, restarting CCcam" >> $ERRORLOG
killall CCcam$CCCAMVERSION
killall oscam$OSCAMVERSION
$OSCAMPATH && oscam && $OSCAMVERSION &
sleep 15
$CCCAMPATH && CCcam && $CCCAMVERSION &
else
echo "Cccam is responding like it should"
fi
if [ $OSCAMCHECK = ]
then
echo && date >> $ERRORLOG
echo "oscam is frozen, restarting CCcam" >> $ERRORLOG
killall CCcam$CCCAMVERSION
killall oscam$OSCAMVERSION
$OSCAMPATH && oscam && $OSCAMVERSION &
sleep 15
$CCCAMPATH && CCcam && $CCCAMVERSION &
else
echo "oscam is responding like it should"
fi
####################
cronjob ----for 1 minute in crontabs root
*/1 * * * * /usr/script/ccheck.sh
or
*/1 * * * * /usr/script/ccheck.sh start
start the cron, for this script from cronmanager that you will find
Meniu>pluin>cronmanager
or with DCC >telnet , commands
crontab -e with DCC
verify process is running-- Command : PS also in DCC telnet
bye
locations of folders
usr/script/ccheck.sh
etc/cron/crontanbs