In linux, the crontab switch value is crontab-uusername-e for the scheduled task. run the crontab-uusername-e // Set the scheduled task for username in the pop-up editing box and enter the scheduled task as follows: 0 */2 *** echo & quot; Haveabreaknow every two hours. & quot; & gt ;... in linux, the crontab switch value is crontab-u username-e. the root user executes crontab-u username-e. // Set the scheduled task for username with Hu.
In the pop-up editing box, enter a scheduled task, for example, 0 */2 *** echo "Have a break now every two hours. ">/tmp/test.txt every two hours from PM to AM, 8 *** echo "Have a good dream :)">/tmp/test.txt: 4 every month and www.2cto.com 0 11 4*1 from Monday to Wednesday of every week -3 command line a.m. on October 11, January 1 4 1 1 * command line time settings we have certain conventions, the first five digits * represent five numbers. the value range and meaning of the numbers are as follows: minute (0-59) is small? R (0-23) Date (1-31) month (1-12) Week (0-6) // 0 indicates Sunday. in addition to numbers, there are also several special symbols: "*", "/", "-", and ". * indicates the number in all values, "/" indicates the meaning of each, "*/5" indicates every five units, "-" indicates the number from a number to a number, "," separate several discrete numbers. For specific settings, refer to the/etc/crontab file.
Author William Strong
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