Thanks for the input tybalt89! I tested the version I had against the version you wrote on 7052 servers using time. The version I had performed better even after I added the timeout back into your version.
My Version:
real 1m6.522s user 0m59.375s sys 1m5.178s
Your Version:
^C real 3m10.862s user 0m0.685s sys 0m0.507s
I'm not familiar enough with it. And note some of the servers in my list may no longer exist so it may have been hung up on some?
In reply to Re^2: A question of fork efficiency
by synless
in thread A question of fork efficiency
by synless
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |