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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list



[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]