Scheduled task cron command and cron command

Source: Internet
Author: User

Scheduled task cron command and cron command

A beginner in linux, because the project needs to learn the linux operating system now.

A scheduled task is required for the project to access a url every hour. You can learn how to use the crontab command by referring to many blogs.

Crontab-u root-l # query the currently executed cron command

Crontab-u root-e # edit a scheduled task

Create scheduled task

* *** Command
The 1st column indicates minute 1 ~ 59, represented by * or */1 per minute
The first column indicates the hour 1 ~ 23 (0 indicates 0 points)
The 3rd column indicates the date 1 ~ 31
The 4th column indicates the month 1 ~ 12
The Identification Number of column 5th is from day of the week to day ~ 6 (0 indicates Sunday)
6th columns of commands to run

For example, 01 **** curl www.baidu.com indicates that the first minute of every hour accesses Baidu

 

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.