linux crontab 隔秒执行

step=3 #间隔的秒数,不能大于60  
 
for (( i = 0; i < 60; i=(i+step) )); do  
    $(curl http://xx.xxx)  
    sleep $step  
done 

posted on 2017-10-05 14:09  yuBestman  阅读(131)  评论(0编辑  收藏  举报

导航