The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

cron/ping network check by carthax2007-06-17 14:22:54
  Here is a .bat file for DOS by Bonzo 2007-06-17 15:27:04
--- Script ---
@echo off
cls
echo Pingscript v1.0 -by Harald "Bonzo" Geving
echo UFies RULE!
echo.
echo Pinging %1 for stability check
echo Use Ctrl+C to quit...
echo.

REM Create timestamp
echo Time: > linecheck.log
time /t >> linecheck.log


REM Ping the given address
echo Pinging...
ping %1 >> linecheck.log


REM Add blank lines for easy reading
echo. >> linecheck.log

REM Add 30 sec delay
echo Waiting 30 seconds...
ping 1.2.3.4 -n 1 -w 30000 > temp.tmp
del temp.tmp

REM start all over again!
echo Restarting script!
pingscript.bat %1
--- EOF ---

Obviously, this is saved as "pingscript.bat"
Start it like so: "pingscript 192.168.0.1" or what ever IP you want to use...
If you actually have an IP 1.2.3.4 in your network, change the script to a different non-existing IP.

If you're not using the sript, I at least hope you got some ideas from it..
[ Reply ]
    I am SO using this. by Esteis2007-06-17 16:30:47

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)