Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

module to ping a remote computer

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


somewhere at on_earth

Oct 18, 2004, 11:34 PM

Post #1 of 3 (344 views)
Permalink
module to ping a remote computer

Has anyone here created a module for pinging a remote computer via the ping
command and displaying a green/red led light button on the local computer
depending upon the response back? This would be a very simple automatic
monitor.

--
http://mail.python.org/mailman/listinfo/python-list


garabik at kassiopeia

Oct 20, 2004, 12:09 AM

Post #2 of 3 (328 views)
Permalink
Re: module to ping a remote computer [In reply to]

anonymous <somewhere [at] on_earth> wrote:
> Has anyone here created a module for pinging a remote computer via the ping
> command and displaying a green/red led light button on the local computer
> depending upon the response back? This would be a very simple automatic
> monitor.
>


Jeremy Hylton, jeremy @ cnri.reston.va.us did develop a ping class.
I have a copy of it because I wanted to use it in some other project,
but never got enough time to finish it. I can send you a copy if you
want.

--
-----------------------------------------------------------
| Radovan GarabĂ­k http://melkor.dnp.fmph.uniba.sk/~garabik/ |
| __..--^^^--..__ garabik @ kassiopeia.juls.savba.sk |
-----------------------------------------------------------
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
--
http://mail.python.org/mailman/listinfo/python-list


adalke at mindspring

Oct 20, 2004, 12:43 AM

Post #3 of 3 (311 views)
Permalink
Re: module to ping a remote computer [In reply to]

anonymous wrote:
> Has anyone here created a module for pinging a remote computer via the ping
> command and displaying a green/red led light button on the local computer
> depending upon the response back? This would be a very simple automatic
> monitor.

Years ago (1998) I wrote a Python wrapper to the command-line
ping program and had it play a sound. Search the newsgroup
archives for "sndping". Here's a Google link


http://groups.google.com/groups?selm=3636B963.2587200C%40bioreason.com&output=gplain


Uggh! I mixed spaces and tabs back then. :(

One problem about ping in the local process is that I believe
it requires root privs. You should likely wrap the
command-line program instead, as I did.

This is exactly the sort of task 'expect' was created for.
You might look at that (it's a Tcl package) or one of the
Python equivalents.


Andrew
dalke [at] dalkescientific
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.