Cron Scheduled Task configuration method in Linux (verbose)

Source: Internet
Author: User

Cron comes from the Greek word chronos (meaning "time"), which is the next program that automatically executes a specified task (scheduled task) on the Linux system

1. crontab Command Options

#crontab-U <-l,-R,-e>

-u Specifies a user
-l lists a user's task schedule
-R Delete a user's task
-e Edit a user's tasks

2. cron file syntax and notation

The CRONTAB-E command can be used to edit, edit the corresponding user's cron file under/var/spool/cron, or modify the/etc/crontab file directly. The specific format is as follows:

Minute Hour Day Month Week command
Minute hour day month week order
0-59 0-23 1-31 1-12 0-6 command

Cron Scheduled Task configuration method in Linux (verbose)

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.