A
Alberto Vera
Hello:
Is it possible to make "ping" from Python and get statistics like using command prompt from Windows?
How Can I capture them into variables?
Thanks
Pinging XXXX.XXXX.XXXX.XXXX with 32 bytes of data:
Reply from XXXX.XXXX.XXXX.XXXX: bytes=32 time<10ms TTL=255
Reply from XXXX.XXXX.XXXX.XXXX: bytes=32 time<10ms TTL=255
Reply from XXXX.XXXX.XXXX.XXXX: bytes=32 time<10ms TTL=255
Reply from XXXX.XXXX.XXXX.XXXX: bytes=32 time<10ms TTL=255
Ping statistics for XXXX.XXXX.XXXX.XXXX:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
Is it possible to make "ping" from Python and get statistics like using command prompt from Windows?
How Can I capture them into variables?
Thanks
Pinging XXXX.XXXX.XXXX.XXXX with 32 bytes of data:
Reply from XXXX.XXXX.XXXX.XXXX: bytes=32 time<10ms TTL=255
Reply from XXXX.XXXX.XXXX.XXXX: bytes=32 time<10ms TTL=255
Reply from XXXX.XXXX.XXXX.XXXX: bytes=32 time<10ms TTL=255
Reply from XXXX.XXXX.XXXX.XXXX: bytes=32 time<10ms TTL=255
Ping statistics for XXXX.XXXX.XXXX.XXXX:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms