Crontab on DM600?

The Dentist

VIP Member
VIP Member
Joined
Apr 2, 2006
Messages
8,321
Reaction score
1,045
Location
London
Has anyone used the crontab tool for the DM600?

Im looking at setting the the cccam 2.1.4 to restart itself automatically like every day at a certain time.


Eg:
0 6 * * * /root reboot

0 6 * * * /var/script/aaaaa.sh

Logs stored in::

0 6 * * * /var/script/aaaaa.sh >/tmp/myscript.log 2>&1
 
i just edit the

/spool/cron/crontabs/root

manually with notepapd++

Code:
You don't have permission to view the code content. Log in or register now.

e.g

6 * * * * /var/script/aaaaa.sh
^ Hourly at 6 min past hour

0 6 * * * /var/script/aaaaa.sh
^ Daily 6am

6 6 * * Sun /var/script/aaaaa.sh
^ Every Sunday at 6:06
 
Last edited:
Just checked and crontab isnt in the downloads list? or the folder spool, its missing from the box
 
no idea about DM600 image features plugins etc, i only have a TM600 thought your question was more about crontab than image

on TM600 it's

/var/spool/
 
Can you telnet into the box ?

you should be able to issue the crontab -e command ?

You should not really edit crontabs with notepad as its a system wide operation, and will normally correctly run via the bash screen.

I honestly have never run a crontab on the dreambox but have used it many times for server issues.

Mick
 
ok im a linux newbie didnt really read up properly. thought crontab was an extension of pli but jus done some reading.

Found the folder in the dreambox:

root/etc/cron/crontabs/

In there, there is a fie call: root
File currently containts the following:

0 6 * * * /var/bin/digital+.sh > /tmp/digital+.sh.log 2>&1
0 6 * * * /var/bin/rt_uk.sh > /tmp/rt_uk.sh.log 2>&1
0 6 * * * /var/bin/e1_CDS_TVV.sh > /tmp/e1_CDS_TVV.sh.log 2>&1
0 6 * * * /var/bin/e1_Csat.sh > /tmp/e1_Csat.sh.log 2>&1
0 6 * * * /var/bin/e1_Ziggo_west.sh > /tmp/e1_Ziggo_west.sh.log 2>&1

What i have done is added the following lines in red:

0 6 * * * /var/bin/digital+.sh > /tmp/digital+.sh.log 2>&1
0 6 * * * /var/bin/rt_uk.sh > /tmp/rt_uk.sh.log 2>&1
0 6 * * * /var/bin/e1_CDS_TVV.sh > /tmp/e1_CDS_TVV.sh.log 2>&1
0 6 * * * /var/bin/e1_Csat.sh > /tmp/e1_Csat.sh.log 2>&1
0 6 * * * /var/bin/e1_Ziggo_west.sh > /tmp/e1_Ziggo_west.sh.log 2>&1
0 6 * * * Reboot

Now my question is, can i just put that in that file, save it and it will work, or do i have to point to another file, eg a script file (.sh) so it runs that script at the given time.

Also, what would i put in the script file?

just:
Reboot

Apologies if these sound stupid questions lol.


Just thinking out loud....would that reboot the dreambox or reboot cccam.cfg?
 
Last edited:
ok im a linux newbie didnt really read up properly. thought crontab was an extension of pli but jus done some reading.

Found the folder in the dreambox:

root/etc/cron/crontabs/

In there, there is a fie call: root
File currently containts the following:



What i have done is added the following lines in red:



Now my question is, can i just put that in that file, save it and it will work, or do i have to point to another file, eg a script file (.sh) so it runs that script at the given time.

Also, what would i put in the script file?

just:
Reboot

Apologies if these sound stupid questions lol.


Just thinking out loud....would that reboot the dreambox or reboot cccam.cfg?

deffinelty wouldn't reboot cccam.cfg not sure if it would reboot dreambox.

if it's just cccam you want to restart, ftp "cccamcheck" in attached .zip into /var/bin/ and "chmod 755" it

then add either of these lines to cronds "root" file

to only start cccam if process isn't active
Code:
You don't have permission to view the code content. Log in or register now.

or to always restart cccam
Code:
You don't have permission to view the code content. Log in or register now.

is a script i start making awhile ago and never bothered testing it till now, could probably make a few improvements.
 
i am finally putting this to the test lol after 2 years.

too much time on my hands.

is there anywhere i can check that this has actually worked? eg a log file that records start /stop / run times?
 
Back
Top