Cron Service

From Wiki for Dragino Project
Revision as of 02:13, 2 May 2012 by Edwin1123 (Talk | contribs)

Jump to: navigation, search

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