Ping in Python

Doug Stanfield DOUGS at oceanic.com
Wed Jan 12 13:38:21 EST 2000


This gives me a chance to plug one of the new Python books, delivered just
yesterday from Amazon.  The quick skim looks very promising for 'Python
Annotated Archives' by Martin C. Brown, and the following leapt out;  from
Chapter 2, Networking, a section titled 'Emulating Ping'.  Good info that
answers some of the "how does a PING work" question and this quote:

"This script is part of the standard Python distribution and can be found in
the following location: Demo/sockets/udpecho.py".

I think on Windows you need to download the source to get it, but it was on
my RedHat system under /usr/doc/python-demos-1.5.2/Demo/sockets/udpecho.py.

Hope this helps,
-Doug-

> -----Original Message-----
> From: Anders M Eriksson 
> [mailto:anders.eriksson at morateknikutveckling.se]
> Sent: Wednesday, January 12, 2000 6:16 AM
> To: python-list at python.org
> Subject: Ping in Python
> 
> 
> Hello!
> 
> Everyday about 1.30 pm my Intenet just dies. Everything takes forever
> and IE nearly almost will TimeOut on all pages. So I need to test and
> document this so I can tell my ISP that there is something wrong.
> 
> So I thought: Why don't I create an Python program that will PING a
> list of hosts and log the response! 
> 
> But how does a PING work?
> 
> tips, articles, source code will be very wellcome!!
> 
> // Anders
> 
> ---
> Enlish isn't my first or second language, 
> so anything that you find offending is not there on 
> purpose it's just due to the translation ;-)
> -- 
> http://www.python.org/mailman/listinfo/python-list
> 




More information about the Python-list mailing list