Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 1 of 1

Thread: E2 - Enabling cron daemon how to

  1. #1
    Standard RSP member
    Join Date
    13 Feb 2007
    Location
    Earth
    Posts
    1,977
    Mentioned
    0 Post(s)
    Rep Power
    84

    Post E2 - Enabling cron daemon how to

    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •