rejetto forum

Author Topic: The Throwback (retro) template. With large folder and mobile support.  (Read 153527 times)

Offline danny

  • Tireless poster
  • ****
  • Posts: 281
    • View Profile
Watchdog, Keep-Alive, No-Freeze script
« on: February 20, 2020, 04:06:08 PM »
...wget...if you can share...
Sure, here is a no-frills version.
Code: [Select]
@echo off
:ONE
timeout /t 10 > nul
VER > nul
wget 127.0.0.1:80/favicon.ico --output-document=nul --quiet
IF %ERRORLEVEL% NEQ 0 GOTO TWO
GOTO ONE
:TWO
TASKKILL /IM hfs.exe /F
timeout /t 3
start "" "hfs.exe"
GOTO ONE
Assumptions:
batch file and wget in same folder as hfs.exe
HFS filename is hfs.exe (you can edit both)
port 80 (you can edit)


Windows 7, 8, 8+1, 10 can run it.  Both script and WGET are in the attachments.
...share the final working code you end [up] using...
Also attached is a deluxe/embellished version
WatchCat!
This has more patience for busy servers (so no unnecessary restarts), settable tries/timeouts, settings safeguard, and better display. . . including a little ascii-art staring cat at the top of the on-screen log.
« Last Edit: February 21, 2021, 08:12:21 AM by danny »

Follow members gave a thank to your post:


Thank-o-Matic 3.0 By Adk Team