Crontab timing in Ubuntu is a scheduled execution in linux. The following describes some problems I encountered when using crontab: 1. crontab-e [UserName]: execute the text editor to set the time table crontab-r [UserName]: delete the current time...
Crontab timing in Ubuntu is a scheduled execution in linux. The following describes some problems I encountered when using crontab: 1. crontab-e [UserName]: execute the text editor to set the time table crontab-r [UserName]: delete the current time table crontab-l [UserName]: to list the current time table crontab-v [UserName]: to list the state of the user cron job crontab file: replace the original crontab file 2. when the crontab file is saved for the first time, a new file named after the current user name is created in the/var/spool/cron/crontabs folder, the content in the file is what you see when you edit crontab-e. 3. the Statement ***** for adding a scheduled task to www.2cto.com indicates that the command is minute 1 ~ in column 1st of the daily and monthly command ~ 59 every minute, use * or */1 to indicate 2nd columns to indicate hour 1 ~ 23 (0 indicates 0 points) column 3rd indicates date 1 ~ 31 column 4th indicates the month 1 ~ 12 column ID No. 0 ~ 6 (0 indicates Sunday) the *** wget-q -- spider http: // localhost/xxx command to be run in column 6th. php calls a webpage every minute.
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