Linux Crontab usage

Source: Internet
Author: User

Cron is a [daemonProgram] Is used to execute a travel task within a specified time period. each user has a crontab file to allow them to specify the content and time to be executed. In addition, the system also has a crontab, allows tasks with rules such as alternating logs and updating local data.

Edit your own

Crontab :~ # Sudo crontab-e

An editing window will be opened. The first line will show the content format prompt:

# M h Dom mon Dow command

Specific meaning: minute Hour Date month week command, in a month (Mon) One day (DOM) or the day of the week (Dow) (H, 24 hours) A minute (m) executes a command, * indicates any time. For example:

3 ***/home/Ubuntu/Hello. Sh

Indicates to execute hello. Sh at every day.

After the system is restarted, test the normal running of crontab under the Ubuntu user. Java-Javascript

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.