1分钟执行一次脚本
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
step=1 #间隔的秒数,不能大于60
for (( i = 0; i < 60; i=(i+step) )); do
curl -sS --connect-timeout 10 -m 60 '这里填写域名地址'
echo "-------------------监控状态----------------------"
endDate=`date +"%Y-%m-%d %H:%M:%S"`
echo "★[$endDate] Successful"
echo "-------------------监控状态----------------------"
sleep $step
done
exit 0
*INFO SERVICE EXPIRATION FOR blmbk.com
Attention: Accounts Payable / Domain Owner / 宝塔面板秒级别定时任务 - 不留名博客
Your Domain: www.blmbk.com
Expected Reply before: Apr 21, 2023.
This Notice for: www.blmbk.com will expire on Apr 21, 2023.
*For details and to make a payment for blmbk.com services by credit card:
Visit: https://orkpay.com/?web=blmbk.com
0421202312064406-62915320
*INFO SERVICE EXPIRATION FOR blmbk.com
Attention: Accounts Payable / Domain Owner / 宝塔面板秒级别定时任务 - 不留名博客
Your Domain: www.blmbk.com
Expected Reply before: Apr 27, 2023.
This Notice for: www.blmbk.com will expire on Apr 27, 2023.
*For details and to make a payment for blmbk.com services by credit card:
Visit: https://orkpay.com/?web=blmbk.com
04272023213054(03) 5379 2488