On 2011/05/13 11:59, Vadim Zhukov wrote:
> > I think if you want some messages quieted, maybe you should look up
> > some standard unix utilities.
> >
> > ping host 2>&1 | awk '/is down/{next}{print}'
> 
> Yes, I'm usually using the following:
> 
>  ping 1.2.3.4 2>&1 | fgrep 'bytes from'

> Of course, mentioned functionality could be managed as shell script

This seems like something that could easily be handled with an
shell function, no need for a whole separate script for it:

qping() {
        ping "$@" 2>&1 | fgrep 'bytes from'
}

> I thought it may be handy to have such functionality in the base.

I think something would have to be especially useful to be worth
adding another option flag to ping (especially one which is already
used for something else on other OS)..

FWIW I like to use ping -e / -E for this sort of situation.

Reply via email to