实例如下:
vim /var/spool/cron/root * * * * * sleep 10; /usr/bin/curl http://localhost/index.php * * * * * sleep 20; /usr/bin/curl http://localhost/index.php * * * * * sleep 30; /usr/bin/curl http://localhost/index.php * * * * * sleep 40; /usr/bin/curl http://localhost/index.php * * * * * sleep 50; /usr/bin/curl http://localhost/index.php
<p<i
mg class=”aligncenter” referrerPolicy=”no-referrer” src=”https://i01piccdn.sogoucdn.com/63398d45bd3b7b2e” alt=”linux的计划任务可以设定成每30秒钟执行命令一次么 就是 crontab e 这个命令之后应该怎么写 “>
>以上这篇crontab每10秒执行一次的实现方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持站长源码网。
本文从互联网转载,来源地址:www.downzz.com/linux-shell/170756.html,原作者保留一切权利,若侵权或引用不当,请联系九八云(cmy.cn)删除。【九八云,优质云服务器提供商】