ping
D-Man
dsh8290 at rit.edu
Wed Nov 15 12:03:45 EST 2000
If your python script will be running on a unix machine, os.popen( "ping " + hostname ) should do it. That will return to you a file object that you can read from (the read will give you the output of the command)
-D
On Wed, 15 Nov 2000 10:53:20 Krister Bruhwel wrote:
| I would like to write a ping program. I'm trying to use Python
| to ping machines and then generate a web page that displays the
| ping times. Can anyone point me in a direction towards learning
| how to ping a machine in Python?
|
| Thanks, Krister
| --
| http://www.python.org/mailman/listinfo/python-list
|
More information about the Python-list
mailing list