Read more

ping with timestamps

Henning Koch
November 04, 2015Software engineer at makandra GmbH

Use this snippet Show archive.org snapshot by Achu Show archive.org snapshot from Ask Ubuntu Show archive.org snapshot :

ping hostname.tld | while read pong; do echo "$(date): $pong"; done
Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

This gives you lines like:

Wed Nov  4 10:32:31 CET 2015: 64 bytes from 1.2.3.4: icmp_seq=298 ttl=61 time=0.673 ms
Wed Nov  4 10:32:32 CET 2015: 64 bytes from 1.2.3.4: icmp_seq=299 ttl=61 time=0.616 ms
Wed Nov  4 10:32:33 CET 2015: 64 bytes from 1.2.3.4: icmp_seq=300 ttl=61 time=1.04 ms
Posted by Henning Koch to makandra dev (2015-11-04 10:30)