PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
step=10
for (( i = 0; i < 60; i=(i+step) )); do
curl -sS --connect-timeout 10 -m 60 'https://2022.ip138.com'
echo "------------------- 秒级定时器 ----------------------"
endDate=`date +"%Y-%m-%d %H:%M:%S"`
echo "★[$endDate] Successful"
echo "------------------- 秒级定时器 ----------------------"
sleep $step
done
exit 0
-
- 浅色
- 深色
- 自动
宝塔添加秒级定时器 - Shell脚本
/
in 杂记
评论 (0)