Linux scheduled task crontab and Linux task crontab

Source: Internet
Author: User

Linux scheduled task crontab and Linux task crontab


Crontab scheduled task format

1 * command2 column 1st indicates minute 1 ~ 59 every minute, use * or */1 to indicate 3, 2nd columns to indicate hour 1 ~ 23 (0 indicates 0 points) 4 3rd columns indicate date 1 ~ Column 315 indicates the month 1 ~ 126 5th Column ID No. 0 ~ 6 (0 indicates Sunday) 7 6th columns of commands to be run

 

The time granularity of crontab is minute. to implement a second-level task, you only need to use the sleep command. For example, once every 30 seconds:

1 * command2 * sleep 10; command3 * sleep 20; command4 * sleep 30; command5 ***** sleep 40; command6 ***** sleep 50; command7

 

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.