On 2011-04-06 13.00, Peter Hessler 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. 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? > > I use silent ping very often (especially in scripts and cronjobs), and it > pisses me off that I need to redirect to /dev/null. I'm scratching an > itch, here.
Personally, I see no problem redirecting output to /dev/null in scripts. In fact, I'd probably continue to do that even with a "really quiet" switch because it is the portable way to do it. (Ok, ping isn't the best command to use that argument with, since no two ping implementations seem to have the same set of switches, but generally speaking.) So, to add a switch whose sole purpose in life is to make scripting easier would be pointless to anyone who needs to be able to run their script in an environment other than OpenBSD. I'm not saying don't do it, I'm just saying I myself see no use for it other than the bloat value. :-) Regards, /Benny -- internetlabbet.se / work: +46 8 551 124 80 / "Words must Benny Lvfgren / mobile: +46 70 718 11 90 / be weighed, / fax: +46 8 551 124 89 / not counted." / email: benny -at- internetlabbet.se