http://bash.org/?5273 Surely most people reading this will know the quote linked without having to even click it.
The best ping story I've ever heard
11–20 of 49 posts
Re: The best ping story I've ever heard
#12Do someone know how to run a command for every line emitted in a unix pipe? I tried the oneliner in the linked story using Mac OS X’s `say`, but it doesn’t work with pipes.
You'll also need sed -l to limit buffering.
ping | sed -l 's/.*/ping/' | xargs -n1 sayRe: The best ping story I've ever heard
#13Re: The best ping story I've ever heard
#14Re: The best ping story I've ever heard
#15This is a good one too, although not strictly ping related. http://www.ibiblio.org/harris/500milemail.html
Re: The best ping story I've ever heard
#16Do someone know how to run a command for every line emitted in a unix pipe? I tried the oneliner in the linked story using Mac OS X’s `say`, but it doesn’t work with pipes.
In a typical UNIX fashion, there's a program that runs programs: ping 127.0.0.1 | sed -e 's/.*/ping/' | xargs -d'\n' -n1 say
And `sed -e ` is redundant, `-e` is used to specify multiple commands.
Re: The best ping story I've ever heard
#17Re: The best ping story I've ever heard
#18Is it just my network administrator or do others drop outgoing Ping messages at the corporate firewall? This has cost me and others more time than I would like to admit for some vague "security" reason that he won't or can't explain.
Result: if your machine isn't in one of those blessed ranges, you never get a response to a ping to an outside address. Most users don't complain, because they don't even know what a ping is.
So, it's not just your company, but it's not general practice everywhere.
Re: The best ping story I've ever heard
#19Do someone know how to run a command for every line emitted in a unix pipe? I tried the oneliner in the linked story using Mac OS X’s `say`, but it doesn’t work with pipes.
Re: The best ping story I've ever heard
#20Made it look like there was 50% packet loss on an otherwise perfectly good Cat 5 cable...
(edit: ICMP instead of IP)