However, when I print the output :my $output = `ping $host`;
it doesn't look like when you run it on a DOS command ,, The result of the script will look somthing like this :print "ping result $output\n";
I need it to look somthing like :Reply from 10.58.188.11: bytes=32 time=61ms TTL=123 Reply from 10.58.1 +88.11: bytes=32 time=146ms TTL=123 Reply from 10.58.188.11: bytes=32 +time=60ms TTL=123 Reply from 10.58.188.11: bytes=32 time=60ms TTL=123 Ping statistics for 10.58.188.11: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate r +ound trip times in milli-seconds: Minimum = 60ms, Maximum = 146ms, Average = 81ms
Just like the way it appears when ran on the command line , any thoughts ? thanks in advanceReply from 10.58.188.11: bytes=32 time=61ms TTL=123 Reply from 10.58.188.11: bytes=32 time=146ms TTL=123 Reply from 10.58.188.11: bytes=32 time=60ms TTL=123 Reply from 10.58.188.11: bytes=32 time=60ms TTL=123 Ping statistics for 10.58.188.11: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate r +ound trip times in milli-seconds: Minimum = 60ms, Maximum = 146ms, Average = 81ms
In reply to formatting the output by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |