1、当监控到网页出错,重启发布程序服务
@echo off curl.exe -s http://202.104.118.201:7000 > ./status.txt set/p status=<./status.txt if "%status%"=="invalid user" (echo "system are running") else (call ./bad.bat)
1、当监控到网页出错,重启发布程序服务
@echo off curl.exe -s http://202.104.118.201:7000 > ./status.txt set/p status=<./status.txt if "%status%"=="invalid user" (echo "system are running") else (call ./bad.bat)