linux crontab 实现每秒执行

linux crontab 命令,最小的执行时间是一分钟。如须要在小于一分钟内重复执行,能够有两个方法实现。php 1.使用延时来实现每N秒执行linux 建立一个php作执行动做,很是简单,就是把当前时间写入log。shell <?php file_put_contents('/home/fdipzone/php/crontab/run.log', date('Y-m-d H:i:s')."\r
相关文章
相关标签/搜索