step=1 #单位:秒;间隔的秒数,最大 60。需要几秒监控就填几
for((i=0;i<60;i=(i+step)));do
curl -s http://www.yuanxiapi.cn/index.php
endDate=`date +"%Y-%m-%d %H:%M:%S"`
echo "★[$endDate] Successful"
echo "---------"
sleep $step
done;
exit 0
------本页内容已结束,喜欢请分享------
感谢您的来访,获取更多精彩文章请收藏本站。
暂无评论内容