嵌入式LINUX系统开发教程pdf下载
最近要做一个发短信订阅的计划,每3秒执行一次
* * * * * for i in {0..59}; do curl http://localhost/data/sms_data.php && sleep 3; done;
每秒执行如下:
* * * * * for i in {0..59}; do curl http://localhost/data/sms_data.php && sleep 1; done;
每15秒执行一次:
* * * * * for i in 0 1 2; do curl http://localhost/data/sms_data.php & sleep 15; done;
* * * * * for i in {0..59}; do curl http://localhost/data/sms_data.php && sleep 3; done;
每秒执行如下:
* * * * * for i in {0..59}; do curl http://localhost/data/sms_data.php && sleep 1; done;
每15秒执行一次:
* * * * * for i in 0 1 2; do curl http://localhost/data/sms_data.php & sleep 15; done;
转载请注明:谷谷点程序 » linux crontab每秒执行的最简单实现方法