Cron Scheduled Tasks

Source: Internet
Author: User

List all Scheduled Tasks

[Email protected] ~]# crontab-l

List specified user task schedules

[Email protected] ~]# crontab-u guo-l

-U: Specify a user, the no-u option is the current user;

-E: Make planning tasks;

-L: Lists scheduled tasks;

-R: Deletes a scheduled task.

3 echo "OK" >/root/cron.log

what does the numeric sub-table for each field mean? From left to right, in order: minute, time, day, month, week, command line. The meaning of the above example is: On June 5 (This day must be 3) 10:01 execute command echo "OK" > /root/cron.log

See if the Crond service is started

[[Email protected] ~]# service Crond Statuscrond (PID 1464) is running ...

If it is a stop state, you need to start it: [[email protected] ~]# service Crond Statuscrond stopped [[email protected] ~]# Service Crond start is starting Crond: Determine


This article is from "Linux rookie" blog, please be sure to keep this source http://490617581.blog.51cto.com/11186315/1759876

Cron Scheduled Tasks

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.