定时发送http请求监控网站,还有日志输出记录
@echo off color 1f title big-keyboard set INTERVAL=60 :lookHttp echo %date% %time% curl -s https://www.cnblogs.com/big-keyboard/>check.txt timeout %INTERVAL% goto lookHttp
@echo off bat脚本头 color 1f 颜色 title big-keyboard 标题 set INTERVAL=60 间隔时长 :lookHttp 方法名称 echo %date% %time% 打印时间 curl -s https://www.cnblogs.com/big-keyboard/>check.txt 监控的网站地址 timeout %INTERVAL% 发起等待 goto lookHttp 执行方法
标签:bat,http,big,echo,keyboard,lookHttp,curl From: https://www.cnblogs.com/big-keyboard/p/16902513.html