I wrote pinger - ping a range of hosts some time ago, which offers one Way To Do it. The main trick is to mark the script setuid root, in order to use ICMP packets. None of my machines respond to TCP or UDP echo packets, and I see no reason for that to change.
I don't really see the use for an array interface. If you feed an array in, you have to parse an array coming out, and match up what output corresponds to what input. Sounds like a lot of fiddly housekeeping details to me.
print@_{sort keys %_},$/if%_=split//,'= & *a?b:e\f/h^h!j+n,o@o;r$s-t%t#u'
| [reply] |
I was able to complete a script that pings several hosts in multiple subnets using the Net::Ping module. Hopefully this helps.
/dev/null | [reply] |
I have it running on some system check routines. Many others here have used it as well. Why not post your code?
Update:Man I must be tired. If you mean this Net::Ping:External you have several replies.
| [reply] |