Module for ping

Alex cut_me_out at hotmail.com
Mon Sep 4 13:14:31 EDT 2000


> 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

Do something like this:

import sys
sys.path.append('path_of_directory_where_ping.py_is_stored.')

import ping
ping.doOne(ping.gethostbyname('python.org'))

Alex.

-- 
The chain of destiny can only be grasped one link at a time.  
-- Sir Winston Churchill



More information about the Python-list mailing list