Difference between revisions of "Cron Service"
From Wiki for Dragino Project
(Created page with "Dragino supports cron service which you can schedule your task to be executed periodly") |
|||
Line 1: | Line 1: | ||
− | Dragino supports cron service which you can schedule your task to be executed | + | Dragino supports cron service which you can schedule your task to be executed periodically. |
+ | |||
+ | Steps to set cron service: | ||
+ | *create file: '''/etc/crontabs/root''' | ||
+ | *modify /etc/crontabs/root for scheduling task, below is the format and example | ||
+ | #run script /root/test at 10 every hour | ||
+ | #format [minute] [hour] [day of month] [month] [day of week] [program to be run] | ||
+ | 10 * * * * /bin/sh /root/test | ||
+ | *restart crond service | ||
+ | root@dragino-1a7f76:~# /etc/init.d/cron restart |
Revision as of 02:13, 2 May 2012
Dragino supports cron service which you can schedule your task to be executed periodically.
Steps to set cron service:
- create file: /etc/crontabs/root
- modify /etc/crontabs/root for scheduling task, below is the format and example
#run script /root/test at 10 every hour #format [minute] [hour] [day of month] [month] [day of week] [program to be run] 10 * * * * /bin/sh /root/test
- restart crond service
root@dragino-1a7f76:~# /etc/init.d/cron restart