Оригинал - здесь
here is a busybox with crond and crontab enabled, extract to
stb, set rights and put this in your start.sh:
/var/bin/busybox crond
for viewing crontab type:
/var/bin/busybox crontab -l
to edit crontab type:
/var/bin/busybox crontab -e
create cronjobs examples:
Code: [Select]
min hour day month dow command
* * * * * script.sh
This will happen every minute
5 * * * * script.sh
This will happen every 5th minute each hour
*/5 * * * * script.sh
This will happen every 5 minutes
for example there is a hddtemp script included you can
remove this if not needed.
Here is a Crontab Generator: http://www.generateit.net/cron-job/
here is a busybox with crond and crontab enabled, extract to
stb, set rights and put this in your start.sh:
/var/bin/busybox crond
for viewing crontab type:
/var/bin/busybox crontab -l
to edit crontab type:
/var/bin/busybox crontab -e
create cronjobs examples:
Code: [Select]
min hour day month dow command
* * * * * script.sh
This will happen every minute
5 * * * * script.sh
This will happen every 5th minute each hour
*/5 * * * * script.sh
This will happen every 5 minutes
for example there is a hddtemp script included you can
remove this if not needed.
Here is a Crontab Generator: http://www.generateit.net/cron-job/