in reply to Re: copy echo message into file
in thread copy echo message into file

Please note that you probably want to add the "-c count" switch, in order to have ping stop at a certain point. So, for example:
my $result = `ping -c 5 host 2>&1`;
But in the ping case, you could also have a look at Net::Ping (which I'd prefer over the backticks).
--
B10m