Using $PROMPT_COMMAND to beep depending on success/failure

Henry Yen blinux-mail at
Fri Apr 22 00:38:52 UTC 2016

On Wed, Apr 20, 2016 at 04:24:19AM -0500, Tim Chase wrote:
> I'd simplify the test to something like
>   ping -c 1 -W 2

This can be further simplified by eliminating a DNS lookup (or maybe two):

   ping -c 1 -W 2 -n -q

Adding the '-q' option slightly reduces the amount of useless output.

Henry Yen                                       Aegis Information Systems, Inc.
Senior Systems Programmer                       Hicksville, New York

More information about the Blinux-list mailing list