"Ubuntu" Performs timed tasks (cron)

Source: Internet
Author: User

1. Open the Scheduled Task profile

Crontab-e

2. Writing timed Tasks
Time Commands and scripts
Example:/3 * * * * */soft/config/test.sh

The first 5 fields are time, the following one is the command

The first 5 meanings are:
Minutes 0-59
Hours 0-23
Day 1-31
Month 1-12
Week 0-6 0 indicates Sunday

* * * * * # Perform a task every minute
0 * * * * # 0 points per hour to perform a task, such as 6:00,10:00
6,10 * 2 * * # 2nd per month, 6 minutes per hour and 10 minutes to perform a task
*/3,*/5 * * * * # every 3 minutes or 5 minutes to perform a task, such as 10:03,10:05,10:06

3. Restart Crond after modification
sudo service cron restart

"Ubuntu" Performs timed tasks (cron)

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.