I see.  Well, this batch file will accomplish that.  It'll only give
you a timestamp after each ping command finishes though.  Still,
that'll give you a timestamp every x seconds, 4 by default.  Might be
better to make that every 10 seconds or 60 or something.  Just change
the -n 10 to however many you want between timestamps.  Just remember
this will also contain the four lines of ping statistics for each
repetition.

:start
echo.|time
ping -n 10 yahoo.com
goto start

put that in some file called pingstats.cmd or pingstats.bat and run
it, it'll keep going until you Ctrl-C it.  I guess you'll actually
want a log of its output too, so you'd just redirect it to some text
file.

pingstats > pinglogs.txt

Then to stop it you just Ctrl-C and then hit Y to answer yes to the
'terminate batch' question that you can't see.  You can't see it
because of the redirection of output to the text file.

On 8/26/05, Alexander Kobbevik <[EMAIL PROTECTED]> wrote:
> As an example:
>
> Im pinging a computer or a VPN connection: ping yahoo.com -t
> Pinging this for 48 hours and I want to know when and for how long the
> connection was down.
>
> Ping is great but I would like to have every line timestamped.
>
> C:\>ping yahoo.com -t
>
> Pinging yahoo.com [66.94.234.13] with 32 bytes of data:
>
> Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
> Reply from 66.94.234.13: bytes=32 time=188ms TTL=50
> Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
> Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
> Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
>
> Ex.
>
> 12:51:23        Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
> 12:51:24        Reply from 66.94.234.13: bytes=32 time=188ms TTL=50
> 12:51:25        Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
> 12:51:26        Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
> 12:51:27        Reply from 66.94.234.13: bytes=32 time=173ms TTL=50
>
> Possible?


--
Clayton Macleod
>get ye flask
You cannot get ye flask.

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds

Reply via email to