Crontab per minute, hourly, daily, weekly, monthly, yearly
Execute */5 every five minutes * * * *
Executes 0 per hour * * * *
Executes 0 0 * * * per day
Weekly Execution 0 0 * 0
Monthly execution 0 0 1 * *
Annual Execution 0 0 1 1 *
Linux timed Execution URL link
There are two ways to do a scheduled task, but both fail
1.CRONTAB-E is written in a * * * * * */usr/bin/php Http://localhost/nh/index.php/Crontab/addLevel
But error: Could not open input file:http://localhost/nh/index.php/crontab/addlevel (firewall is off)
2,CRONTAB-E is written in a * * * * */usr/bin/php/home/wwwroot/default/nh/test.php but error: PHP warning:cannot Modify Header Informat Ion-headers already sent by (output started At/home/wwwroot/default/nh/test.php:2) in/home/wwwroot/default/nh/test.ph P on line 3
The second method test.php
<? PHP
Header ("Location:http://127.0.0.1/nh/index.php/crontab/addlevel");
?>