ping multiple Ips with python

Gerhard Haering gerhard.haering at gmx.de
Fri Jan 3 22:26:04 EST 2003


* darrell <dgallion1 at yahoo.com> [2003-01-04 03:07 +0000]:
> Multiple ping sounded like fun.
> So here's a quick mod to some ping code I found.
>
> #!/usr/bin/env python
> [icmp code in Python]

This needs superuser privileges, right?

Do you work as root by default, because you don't mention this necessity?!

That was the primary reason why I tried to interface the suid root 'ping'
utility with popen2.Popen3.

Gerhard
-- 
Favourite database:             http://www.postgresql.org/
Favourite programming language: http://www.python.org/
Combine the two:                http://pypgsql.sf.net/
Embedded database for Python:   http://pysqlite.sf.net/





More information about the Python-list mailing list