Simple bat script for keeping site up and running

keepsitealive.bat:

@echo off
:start
cls
echo This is a loop
wget http://mysite.localhost --spider
timeout /t 60 /nobreak
goto start

The script runs a get request against the url given every 60 seconds.
–spider indicates wget should not download anything.
Script above uses wget

Leave a Reply

Your email address will not be published. Required fields are marked *