Linux Crond Task Scheduler

Source: Internet
Author: User

Task Scheduler Main program:

    1. ATD production environment is not commonly used

    2. Anacron production environment is not commonly used

    3. Crond commonly used, mainly introduce this program


Crond Service (daemon name Crond, always running):

Command:

Crontab parameters

Common Parameters Introduction:

-e Edit User Task schedule

-L View user's current task schedule

-u user view a user task schedule

Task Scheduler configuration file path:/var/spool/cron/


Under the root User:

Crondtab-e equals Vi/var/spool/cron/root.

Crondtab-l equals Cat/var/spool/cron/root.


Task Scheduler configuration file format:

* * * * Command ( Absolute path recommended for commands, files or directories )

Asterisk

Meaning

Range of values

1th asterisk *

Representative minutes

00-59 (00 can also 0)

2nd asterisk *

Representative hours

00-23

3rd asterisk *

Representative Day

01-31

4th asterisk *

Representative month

01-12

5th asterisk *

Representative of the Week

0-6 (0 for Sunday)

* per

-range, such as: 00 17-19 * * *

, separated, such as: 00 17,20,22 * * * Daily 17 o'clock, 20 points and 22 points

/n per unit time, nth number, such as: */10 * * * * * every 10 minutes


This article is from the "Chhhsdbohe" blog, make sure to keep this source http://437972.blog.51cto.com/427972/1787135

Linux Crond Task Scheduler

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.