Re: TELNET instead PING
From: DCK (dck_at_gazeta.pl)
Date: 01/27/04
- Next message: Michael S. Jessop: "Re: Seem to be having trouble with Python/Bethon."
- Previous message: Gandalf: "Re: TELNET instead PING"
- In reply to: Peter Hansen: "Re: TELNET instead PING"
- Next in thread: Kirk Strauser: "Re: TELNET instead PING"
- Reply: Kirk Strauser: "Re: TELNET instead PING"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 27 Jan 2004 11:11:22 +0000 (UTC)
Peter Hansen wrote:
> Interesting, but why would you use TELNET for that? Telnet is
> simply one of many possible protocols, whereas you need only
> open a socket to the port to see if the host is responding.
I was on some kind of Network course, where teacher said, that telnet
is better then PING. In my work i found this usefull for pinging
network. When i meet with Python, i foud TELNETLIB module and write
simply scheduled script which probe network.
> from socket import *
> s = socket(AF_INET, SOCK_STREAM)
> try:
> s.connect((host, port))
> print 'host connected'
> s.close()
> except error:
> print 'host not responding'
THX for this advice. In future i will read manual carefully :)
Greetz
Michal DCK Kaczor
- Next message: Michael S. Jessop: "Re: Seem to be having trouble with Python/Bethon."
- Previous message: Gandalf: "Re: TELNET instead PING"
- In reply to: Peter Hansen: "Re: TELNET instead PING"
- Next in thread: Kirk Strauser: "Re: TELNET instead PING"
- Reply: Kirk Strauser: "Re: TELNET instead PING"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|