Linux Task Scheduler crontab format: minutehourdaymonthweekdaycommand value range: (0-59) (0-24) (1-31) (1-12) (0-6) the preceding five corresponding systems provide several special symbols to make time representation flexible :*,...
Linux Task Scheduler crontab format: minute hour day month weekday command value range: (0-59) (0-24) (1-31) (1-12) (0-6) the preceding five corresponding systems provide several special symbols to make time representation flexible: *,/, &, and-. * indicates all numbers in the value range, /indicates the meaning of each. www.2cto.com */5 indicates every five units.-indicates the specified time period. "," is used to list multiple numbers. example: 10 0 ** 1 echo Monday>/home/test.txt # execute 2 ***** date every Monday morning>/home/date.txt # execute 3 */10 ** every minute ** * 1-3echo "ten minutes pasted">/home/time.txt # run the command every 10 minutes from Monday to Wednesday. Author skq
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