#!/bin/bash step=30 #间隔的秒数,不能大于60 for (( i = 0; i < 60; i=(i+step) )); do curl #调用链接 sleep $step done exit 0
shell 灵活设置定时任务
原文:https://www.cnblogs.com/lovekingly/p/9744808.html