In an embedded system, the timed task is executed jointly by the Crond and Cronttab two system commands.
Where Crond is the daemon of the scheduled task, and the system is not opened at the beginning.
When compiling the busybox system , the capacity of the/var path is too small, there is no way to start looking for alternative paths .
Of these, Crond and crontab are performed and found crontab tasks by default in the /var/spool/cron/crontabs/directory .
Crontab-c/etc/crontabs//etc/crontabs/-c/etc/crontabs/
Add the above code to the end of the/etc/rc.d/rc.local .
Where the root file is the crontab file for the root user, where root is:
0 * *1 * * * hwclock-
Also, be careful to add executable permissions to the root file. "chmod 777/etc/crontabs/root"
crontab: is a combination of cron and table (table).
Crond: is a combination of cron and daemon (daemon).
cron comes from "Ancient Greek:χρ?νος , English:Chronos, Chinese: time".
Adding timed tasks to embedded systems with crontab and Crond