gaurav has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I am very new to Perl , I have one question regarding Net::Ping output.But before that , I want to show the system ping output on linux system
PING 192.168.1.150 (192.168.1.150) 56(84) bytes of data. 64 bytes from 192.168.1.150: icmp_req=1 ttl=254 time=7.34 ms 64 bytes from 192.168.1.150: icmp_req=2 ttl=254 time=2.11 ms 64 bytes from 192.168.1.150: icmp_req=3 ttl=254 time=2.04 ms 64 bytes from 192.168.1.150: icmp_req=4 ttl=254 time=2.16 ms ^C --- 192.168.1.150 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3003ms rtt min/avg/max/mdev = 2.043/3.415/7.342/2.268 ms
My question is that can we get this type output by using Net::Ping module of perl , because I have to parse this output according to our requirement . I have done a lot of searching regarding this but have not found any thing. So please enlighten me on this.Thanks in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::Ping output
by vinoth.ree (Monsignor) on Aug 19, 2013 at 05:22 UTC | |
by gaurav (Sexton) on Aug 19, 2013 at 05:45 UTC | |
by vinoth.ree (Monsignor) on Aug 19, 2013 at 06:06 UTC | |
by gaurav (Sexton) on Aug 19, 2013 at 06:11 UTC | |
by vinoth.ree (Monsignor) on Aug 19, 2013 at 06:25 UTC | |
| |
|
Re: Net::Ping output
by Anonymous Monk on Aug 19, 2013 at 11:59 UTC | |
by gaurav (Sexton) on Aug 20, 2013 at 04:18 UTC | |
by Anonymous Monk on Aug 20, 2013 at 08:44 UTC | |
by gaurav (Sexton) on Aug 20, 2013 at 09:39 UTC | |
by Anonymous Monk on Aug 20, 2013 at 11:27 UTC | |
|