It is possible to do ping -t -s 1 <computer> and that will give a timestamp in
seconds like:

Reply from 152.64.32.71: bytes=32 time<1ms TTL=128
    Timestamp: 152.64.32.71 : 39689577
Reply from 152.64.32.71: bytes=32 time<1ms TTL=128
    Timestamp: 152.64.32.71 : 39690578
Reply from 152.64.32.71: bytes=32 time<1ms TTL=128
    Timestamp: 152.64.32.71 : 39691580
Reply from 152.64.32.71: bytes=32 time<1ms TTL=128
    Timestamp: 152.64.32.71 : 39692581

not sure if this is helpful
--
Regards,

Matt White


Quoting Alexander Kobbevik <[EMAIL PROTECTED]>:

> 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?
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Clayton Macleod
> Sent: 26. august 2005 12:34
> To: [email protected]
> Subject: Re: [hlds] OT: Time-stamped ping.
>
> I just gave you the simplest of the simplest.  I'm not exactly sure
> what you're trying to accomplish here.  How is this timestamp going to
> be of any use to you?  What is going to issue your ping command?  If
> you're simply typing it in manually, well, look at a clock! ;)  If
> you're using some script or batch file to run the command then I just
> gave you the commands to put in your script or batch file.  I think
> it's pretty safe to say that "ping -T" isn't really what you're
> thinking it is, and isn't what you want.  If you want to know what the
> time was/is when you issue a command, the simplest way to do that is
> to issue a command just before/after that displays the current
> date/time.  In win32 you can do that with the command I showed
> earlier, a "echo.|time" will display the current time.  In linux/*nix
> you can display that with the "date" command.
>
> On 8/26/05, Alexander Kobbevik <[EMAIL PROTECTED]> wrote:
> > I'm pretty lost when it comes to scripting.
> > Basically I would like the "ping -t" command to have a timestamp in front
> or
> > between pings.
> >
> > I have searched for it on Google etc. But either they try to get paid for
> a
> > tool or it gets too complicated.
> > I just need the simplest of simplest.
>
>
> --
> 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
>

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

Reply via email to