Module for ping

Kevin Breit battery841 at remove.for.no.spam.mypad.com
Mon Sep 4 14:03:09 EDT 2000


In article <slrn8r6dtk.nq.matt at happy-hour.mondoinfo.com>,
matt at mondoinfo.com (Matthew Dixon Cowles) wrote:
> 
> On Sun, 03 Sep 2000 23:24:56 -0600, Kevin Breit
> <battery841 at remove.for.no.spam.mypad.com> wrote:
> 
>> Hey, I am curious if there are any modules for sending pings.  I can
>> always run the system call, but I'd much prefer to be able to sit down
>> and have it run native Python code to ping.
> 
> Kevin, If you're using Unix you may find my ping.py useful. It's at:
> 
> ftp://ftp.visi.com/users/mdc/ping.py
> 
> It's pretty primitive but you can probably make it do what you want. It
> requires root priviliges to open the raw socket.
Hmmm...okay.  Now, how do I use this?  I am kinda new at Python.  What is
the syntax to use in the .py app that I am writing to call and use your
stuff.  Granted, it's the basic import blar.py and then blar.ping(IP), but
what is the actual usage for your app? Thanks kevin




More information about the Python-list mailing list