Re: Using $PROMPT_COMMAND to beep depending on success/failure

Henry Yen <[email protected]>
Newsgroups gmane.linux.redhat.blinux.general
Message-ID <[email protected]>
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 www.google.com

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

   ping -c 1 -W 2 -n -q 8.8.8.8

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

-- 
Henry Yen                                       Aegis Information Systems, Inc.
Senior Systems Programmer                       Hicksville, New York
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.