Adding timed tasks to embedded systems with crontab and Crond

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.