ping - statistics
Alberto Vera
avera at coes.org.pe
Wed Oct 22 16:32:27 EDT 2003
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20031022/c5cbbb65/attachment.html>
More information about the Python-list
mailing list