Home » Questions » Computers [ Ask a new question ]

Linux 'ping' - Show when timeout occurrs?

Linux 'ping' - Show when timeout occurrs?

Is there a way to make the Linux implementation of 'ping' to act like the Windows implementation in the way that it shows when a timeout occurs. I don't want it to exit, just show a timeout message.

Asked by: Guest | Views: 28
Total answers/comments: 1
Guest [Entry]

"How about something like

ping -c 1 -t 10 > /dev/null || date

in an infinite loop that runs the whole night?"