星空网 > 软件开发 > 操作系统

Linux 定时任务crontab


crontab定时任务格式

1 * * * * * command2 第1列表示分钟1~59 每分钟用*或者 */1表示3 第2列表示小时1~23(0表示0点)4 第3列表示日期1~315 第4列表示月份1~126 第5列标识号星期0~6(0表示星期天)7 第6列要运行的命令

 


crontab的时间颗粒度为分钟,要想实现秒级任务只需使用sleep命令。如每个30秒一次:

1 * * * * * command2 * * * * * sleep 10; command3 * * * * * sleep 20; command4 * * * * * sleep 30; command5 * * * * * sleep 40; command6 * * * * * sleep 50; command7 

 




原标题:Linux 定时任务crontab

关键词:linux

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

跨境珮支付:https://www.goluckyvip.com/tag/36850.html
跨境汽车电商:https://www.goluckyvip.com/tag/36852.html
跨境桥:https://www.goluckyvip.com/tag/36853.html
跨境侵权Ella说:https://www.goluckyvip.com/tag/36854.html
跨境侵权产品集:https://www.goluckyvip.com/tag/36855.html
跨境侵权大全:https://www.goluckyvip.com/tag/36856.html
5月贾汪好玩的地方 贾汪哪有好玩的地方:https://www.vstour.cn/a/363179.html
23点聊电商:新质生产力加速数字贸易发展 卓尔智联集团实现营收利润双增长 :https://www.kjdsnews.com/a/1836411.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流