Thanks: 0
Likes: 0
Dislikes: 0
E2 - Enabling cron daemon how to
'' In Linux cron daemon allows you to execute scheduled tasks at specific time/date. Useful for autoupdate keys, epg and many more...
SIFTeam Enigma2 has cron daemon already included in busybox binary. Here is a way to use it.
Telnet to your box and execute the following commands:
mkdir -p /var/spool/cron/crontabs
touch /var/spool/cron/crontabs/root
Now edit /var/etc/rcS_user.sh and add the following line at the end:
# cron daemon
/usr/sbin/crond &
(I know that the proper way to autostart is within init.d, but flash users cant edit it)
Now you can add jobs by editing /var/spool/cron/crontabs/root file. (for some reason crontab -e doesnt work).
For example:
30 01 * * * /var/script/examplescript.sh ## the job will start every day at 01:30 h.
30 01 30 * * /var/script/examplescript.sh ## the job will start at 30th every mnont at 01:30h
30 01 * * 0 /var/script/examplescript.sh ## the job will start every s
sunday at 01:30h ''
Last edited by me1960; 15-07-09 at 23:13.
Don't dream your life - live your DREAMbox ! DON'T FORGET TO SAY '' THANKS '' Note: Viewing Pay TV without a valid subscription is illegal All the files available here are kept for experimental and educational purpose only!