One, first login
Two, find the folder
Third, view scheduled tasks
Crontab-l
IV, VI root Edit timed task edit complete, click ESC, then : Wq
Time format
minute hour date Month week command
Digital range 0-59 0-23 1-31 1-12 0-7 echo "Hello" >> abc.log
Meaning of special characters
* (asterisk) on behalf of any time accepted.
, (comma) represents the meaning of the separation period.
-(minus sign) represents a period of time in the range.
/n (slash) that n represents a number, spaced every n units.
EG1: Executed once every May 1 10:5
5 1 5 * command (If execution URL (curl "http://url"), or other direct write path)
EG2: Three points per day, six points for each execution
XX 3,6 * * * command
EG3: Every 8:20, 9:20,10:20,11:20 executes once.
8-11 * * * command
EG4: executed every five minutes
*/5 * * * command
EG5: Executed at 10 points per week
Ten * * 1 command
V: Restart
#service Crond Restart
Linux set up Scheduled tasks