Eurocardsharing

Go Back   Eurocardsharing > Sharing receivers > DreamBox > Chat

Chat Discussion, cccam autorestart script for OE. 2.0 imagler at DreamBox forum; Hi I need CCcam auto restart script for oe 2.0, can anyone help me? i must restart CCcam every 2 ...

Reply
 
LinkBack Thread Tools Display Modes
cccam autorestart script for OE. 2.0 imagler
Old
  (#1)
cmgbox1
Member
 
cmgbox1's Avatar
 
Offline
Posts: 36

Level: 4 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 94
Magic: 12 / 2382
Experience: 76%

Thanks: 15
Thanked 0 Times in 0 Posts
Join Date: Apr 2009
cccam autorestart script for OE. 2.0 imagler - 09-January-2014, 19:48

Hi
I need CCcam auto restart script for oe 2.0, can anyone help me?
i must restart CCcam every 2 or 3 hours
Best regards
   
Reply With Quote
restart cccam
Old
  (#2)
rocade
Member
 
rocade's Avatar
 
Offline
Posts: 59

Level: 6 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 138
Magic: 19 / 3056
Experience: 55%

Thanks: 12
Thanked 6 Times in 5 Posts
Join Date: Jun 2010
restart cccam - 12-January-2014, 01:08

Received this, didn't try it out yet not shure if its works.
let me know

this script will work on most linux dist. including enigma1/2.
The script will check if the CCCam proccess are running with a crontab and restart CCcam if stopped for some reason.

Upload checkcccam.sh and place it under /bin. chmod with 755


Modify these 3 lines inside checkccam.sh to fit your local settings for paths and name of cccam file:

CCCAM_CONFIG_FILE_PATH="/etc"
This is the path where your Cccam.cfg file are located

CCCAM_EXECUTABLE_PATH="/bin"
This is the path where your Cccam.ppc/Cccam.x86 file are located

NAME_OFF_CCCAM_EXECUTABLE="CCcam.x86"
This is the name of your Cccam bin.file.



Then make a crontab to run this script every 1 min.:

# crontab -e

Insert this line and save the file:
* * * * * /bin/checkcccam.sh


Try to kill your cccam process and check that it starts again in max. 1 min.


Checkcccam.sh
#!/bin/bash
CCCAM_CONFIG_FILE_PATH="/etc"
CCCAM_EXECUTABLE_PATH="/bin"
NAME_OFF_CCCAM_EXECUTABLE="CCcam.x86"
#
function Check_CCcam {
ps -eo comm,pid,etime > tmpcat
PID=$(grep -i $NAME_OFF_CCCAM_EXECUTABLE tmpcat | awk -F" " '{ print $2}')
TIME=$(grep -i $NAME_OFF_CCCAM_EXECUTABLE tmpcat | awk -F" " '{ print $3}')
}
#
Check_CCcam
if [ "$PID" = "" ]; then
cd $CCCAM_EXECUTABLE_PATH
./$NAME_OFF_CCCAM_EXECUTABLE -C $CCCAM_CONFIG_FILE_PATH/CCcam.cfg
fi
exit 0


Grzz..
   
Reply With Quote
The Following User Says Thank You to rocade For This Useful Post:
maxmax1 (21-January-2014)
Sponsored Links
Old
  (#3)
hacked
Junior Member
 
hacked's Avatar
 
Offline
Posts: 16

Level: 2 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 43
Magic: 5 / 513
Experience: 74%

Thanks: 0
Thanked 7 Times in 6 Posts
Join Date: Dec 2013
12-January-2014, 23:30

Is it possible to use this on OE 1.6 also?

get this message:

login as: root
[email protected]'s password:
:~# crontab -e
crontab: chdir(/crontabs): No such file or directory
:~# login as: root
Password:
   
Reply With Quote
Old
  (#4)
dampis
Junior Member
 
dampis's Avatar
 
Offline
Posts: 3

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 2
Magic: 1 / 57
Experience: 10%

Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Oct 2010
12-January-2014, 23:57

Try to install busybox-cron package, then type crontab -e
   
Reply With Quote
Old
  (#5)
cmgbox1
Member
 
cmgbox1's Avatar
 
Offline
Posts: 36

Level: 4 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 94
Magic: 12 / 2382
Experience: 76%

Thanks: 15
Thanked 0 Times in 0 Posts
Join Date: Apr 2009
13-January-2014, 00:01

Quote:
Originally Posted by dampis View Post
Try to install busybox-cron package, then type crontab -e
Sorry, what is busybox-cron package? is plugins???
   
Reply With Quote
Old
  (#6)
dampis
Junior Member
 
dampis's Avatar
 
Offline
Posts: 3

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 2
Magic: 1 / 57
Experience: 10%

Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Oct 2010
13-January-2014, 00:28

This is a opkg package, try "opkg update" next "opkg install busybox-cron"
   
Reply With Quote
Old
  (#7)
cmgbox1
Member
 
cmgbox1's Avatar
 
Offline
Posts: 36

Level: 4 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 94
Magic: 12 / 2382
Experience: 76%

Thanks: 15
Thanked 0 Times in 0 Posts
Join Date: Apr 2009
20-January-2014, 19:16

Quote:
Originally Posted by dampis View Post
This is a opkg package, try "opkg update" next "opkg install busybox-cron"
Thank you mate,
I have installed busybox-cron,, how do I adjust it to restart box every day at. 12 and 00.00?
   
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



ECS on RSS ECS on Twitter ECS on Facebook ECS on Youtube
Follow us on:

Powered by vBulletin
Copyright 2002 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Dreambox