On Wed, Apr 6, 2011 at 6:30 AM, Peter Hessler <[email protected]> wrote:
> On 2011 Apr 06 (Wed) at 12:47:40 +0200 (+0200), David Vasek wrote:
> :On Wed, 6 Apr 2011, Peter Hessler wrote:
> :
> :>Sometimes I want ping to be quiet. B Not quiet in the "only show me
> :>headers" way that the original author thought was cute, but in the
> :>"don't show me anything" way, so cron doesn't spam me with useless
> :>crap.
> :>
> :>So, in honor of that, here is a patch to add -Q to ping and ping6.
> :
> :What is the advantage of another button over redirecting stdout and
> :error to /dev/null? Is the completely quiet ping used so often?
> :
> :Regards,
> :David
> :
>
> I use silent ping very often (especially in scripts and cronjobs), and it
> pisses me off that I need to redirect to /dev/null. B I'm scratching an
> itch, here.
>
>
> --
> It's the thought, if any, that counts!
>
>

the shell was supposed to define the interface so that not every
program had to recreate it

and now ksh has a convenient short-hand:
ping google.com >&-

the homogeneous -q flags are as problematic as:
tar xf -
vs.
tar xf /dev/stdin

seems strange that it was decided to put the - alias inside every and
each command that uses it instead of having distinct shorthand for
stdout/in through the shell or fs

Reply via email to