Home >Backend Development >PHP Tutorial >Understand the implementation principle of PHP scheduled tasks
Just run the page above and then close it, the program will keep running. There are simpler crontab commands in linux. The function of the crontab command is to schedule the execution of some commands at a certain time interval. How to use crontab: crontab [ -e | -l | -r ] file name -e: edit task -l: display task information -r: delete scheduled execution task information crontab format: * * * * * Command Minute Hour Day Month Week Command to run crontab example:
Explanation: "*" represents all numbers within the value range, "/" represents every, "*/5" represents every 5 units, "-" represents from a certain number to a certain number, "," means how many units to separate. a discrete number. This article is reproduced from: http://hi.baidu.com/andylu1988/item/9674d31406ed61008ebde4b6 |