Crontab Task Scheduler

Source: Internet
Author: User

Most of the management of the system is done automatically by executing a script on a regular basis. Linux's mission plan can be crotab. What to do at what time of day.

To install the command tool:
Yum Install Vixie-cron Crontabs


Crond boot from:

Chkconfig Crond on


To see if the Crond service is turned on:

Service Crond Status

To start the Crond service:
Service Crond Start


Crontab Common options:


-L: You can view the schedule of users for the specified user.
-U useranme: Specifies that the user name defaults to root.

Example: Crontab-u uaername-l//View task schedule for a specified user

-E: Edit Task Schedule, modify or Add.

-R: Delete Scheduled Tasks


To create a task schedule format:


Min Hou Day Mon Week command

Example: 1 * * */bin/sh/usr/test.sh

0 0 2 * * 0 minutes of second per month execute
0 */8 * * every eight hours.
0 1,12,18 * * * * daily 1,12,18 point execution.

Crontab 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.