Fortsätt till huvudinnehåll
Ping/ICMP with timestamps, Windows and OSX
From
Windows commandprompt:
ping -t <IP-address>|cmd /q /v /c "(pause&pause)>nul & for /l %a in () do (set /p "data=" && echo(!time! !data!)&ping -n 2 localhost>nul"
From
OSX terminal:
ping <IP-address> | awk '/^[0-9]+ bytes from / {
"date" | getline pong; close("date"); print
pong":",$0; }'
Kommentarer
Skicka en kommentar