幸福飞过海 - crontab https://fengqi.me/tag/crontab/ zh-CN Tue, 06 Jan 2015 10:14:11 +0000 Tue, 06 Jan 2015 10:14:11 +0000 [转载]linux定时任务如何每隔0.5秒执行一次呢? https://fengqi.me/unix/325.html https://fengqi.me/unix/325.html Tue, 06 Jan 2015 10:14:11 +0000 风起 参考:linux定时任务如何每隔0.5秒执行一次呢?

* * * * * for i in `seq 120`; do awesome_scripts& sleep 0.5; done

由crontab每分钟调度,每次唤起,循环执行120次,间隔0.5秒.

PS: 很有意思的变通啊.

]]>
0 https://fengqi.me/unix/325.html#comments https://fengqi.me/feed/tag/crontab/