Cron scheduled tasks in linux

Source: Internet
Author: User

Crontab-e

Join:

The first task is executed at 12 o'clock every day.

The second task is executed at every Sunday.

Split line ------------------------------------------------------------------------------------------------------------

Http://blog.csdn.net/tianlesoftware/article/details/5315039

Http://www.blogjava.net/freeman1984/archive/2010/09/23/332715.html

Http://www.bkjia.com/ OS /201301/183226.html

Crontab has three ways to execute a scheduled task:

1 is configured by crontab-e to generate a file with the same name as a specific user under/var/spool/cron/crontabs /.

2 is the scheduled task in the/etc/cron. daily/etc/cron. weekly/etc/cron. monthly directory.

3. Edit the/etc/crontab file and directly add the task command to the/etc/crontab file. In fact, 2 and 3 are the same. The daily weekly monthly task is also executed by the command in the crontab file.

The cron software checks the/etc/crontab file every minute in the background and files under/var/spool/cron. Check whether a scheduled job needs to be executed. This type of job is generally called cron jobs.

FAQs:

Sometimes the scheduled task is not executed. Check whether the File Permission is correct and you do not have the execution permission.

 

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.