Getting out of telnet session gracefully

S

Spin

Gurus,

When you open up a command prompt window and run a telnet test to a host
(for example: telnet cnn.com 80), if the test is successful (remote host is
listening) you get a bunch of "-" marks down the left-hand side of the
window if you keep pressing ENTER. But, how do you exit out of this?
Frequently I have to close the CMD window and re-open so I can run a test to
against another computer (IP host). Thoughts?
 
M

Mr. Arnold

Spin said:
Gurus,

When you open up a command prompt window and run a telnet test to a host
(for example: telnet cnn.com 80), if the test is successful (remote host
is listening) you get a bunch of "-" marks down the left-hand side of the
window if you keep pressing ENTER. But, how do you exit out of this?
Frequently I have to close the CMD window and re-open so I can run a test
to against another computer (IP host). Thoughts?

http://www.google.com/search?hl=en&q=how+to+quit+telnet+&btnG=Google+Search
 
V

VanguardLH

When you open up a command prompt window and run a telnet test to a
host (for example: telnet cnn.com 80), if the test is successful
(remote host is listening) you get a bunch of "-" marks down the
left-hand side of the window if you keep pressing ENTER. But, how
do you exit out of this? Frequently I have to close the CMD window
and re-open so I can run a test to against another computer (IP
host). Thoughts?


If 'quit' doesn't work then the server is waiting for input. If you
can't enter the appropriate input then maybe Ctrl+C will break out if
the server hasn't disabled it. Sometimes when you 'quit', it looks
like you are still in the telnet session because telnet.exe doesn't
show the command prompt but just hitting Enter will paint a new line
and show the prompt.

'telnet /?' just shows the syntax for the command line to execute the
program. Use Start -> Help and Support to get information on the
commands available within a telnet session (that are for the telnet
program versus the commands that the server will accept).
 
B

Brian Cryer

Spin said:
Gurus,

When you open up a command prompt window and run a telnet test to a host
(for example: telnet cnn.com 80), if the test is successful (remote host
is listening) you get a bunch of "-" marks down the left-hand side of the
window if you keep pressing ENTER. But, how do you exit out of this?
Frequently I have to close the CMD window and re-open so I can run a test
to against another computer (IP host). Thoughts?

Control-C sort of works - in that the server then responds with a bad
request page (complete with html) and then the connection is broken. But
this isn't ideal.

If you are doing this to simply test that the web server is responding then
try cryping (free from http://www.cryer.co.uk/downloads/cryping/):

C:\>cryping -n 1 -http cnn.com
CryPing - from www.cryer.co.uk v1.2 (build Jan 2008)
Pinging cnn.com for http status:

Reply from cnn.com: 302 Found time=319ms

HTTP ping statistics for cnn.com:
Requests: Sent = 1, Responses = 1, Lost = 0 (0% loss),
302 Found 1 times (100%)
Approximate round trip times:
Minimum = 319ms, Maximum = 319ms, Average = 319ms
 
S

Spin

If you are doing this to simply test that the web server is responding
then try cryping (free from http://www.cryer.co.uk/downloads/cryping/):

C:\>cryping -n 1 -http cnn.com
CryPing - from www.cryer.co.uk v1.2 (build Jan 2008)
Pinging cnn.com for http status:

Reply from cnn.com: 302 Found time=319ms

HTTP ping statistics for cnn.com:
Requests: Sent = 1, Responses = 1, Lost = 0 (0% loss),
302 Found 1 times (100%)
Approximate round trip times:
Minimum = 319ms, Maximum = 319ms, Average = 319ms

Answer found here:

http://209.85.165.104/search?q=cach.../+how+to+quit+telnet&hl=en&ct=clnk&cd=3&gl=us

"hit ctrl-] (yep, control and the right-bracket). That will return you to a
telnet command prompt. From there you can enter the quit command (q is
sufficient) and you will be returned to your usual Windows command prompt."
 
D

Desk Rabbit

Spin said:
Gurus,

When you open up a command prompt window and run a telnet test to a host
(for example: telnet cnn.com 80), if the test is successful (remote host is
listening) you get a bunch of "-" marks down the left-hand side of the
window if you keep pressing ENTER. But, how do you exit out of this?
Frequently I have to close the CMD window and re-open so I can run a test to
against another computer (IP host). Thoughts?
Linux Ctrl-D

Windows XP Ctrl-]

Your OS **** knows
 
M

Mike Easter

Spin said:
When you open up a command prompt window and run a telnet test to a
host (for example: telnet cnn.com 80),

I much prefer the tool IDServe over telnet.

<type cnn.com into the IDServe window, click Query>

Initiating server query ...
Looking up IP address for domain: cnn.com
The IP address for the domain is: 64.236.16.52
Connecting to the server on standard HTTP port: 80
[Connected] Requesting the server's default page.
The server returned the following response headers:
HTTP/1.1 302 Found
Date: Fri, 14 Mar 2008 15:50:57 GMT
Server: Apache
Location: http://www.cnn.com/
Content-Length: 260
Connection: close
<munge> Content-Type: text/html; charset=iso-8859-1
Query complete.

There are many more functions for IDServe; the default port is 80, but
you can use any other, such as 119 for newsservers, 25 or 110 for
mailservers, etc.

http://www.grc.com/id/idserve.htm a simple, free, small (26 kbytes),
and fast, general purpose Internet server identification utility.
 
B

Brian Cryer

Spin said:
If you are doing this to simply test that the web server is responding
then try cryping (free from http://www.cryer.co.uk/downloads/cryping/):

C:\>cryping -n 1 -http cnn.com
CryPing - from www.cryer.co.uk v1.2 (build Jan 2008)
Pinging cnn.com for http status:

Reply from cnn.com: 302 Found time=319ms

HTTP ping statistics for cnn.com:
Requests: Sent = 1, Responses = 1, Lost = 0 (0% loss),
302 Found 1 times (100%)
Approximate round trip times:
Minimum = 319ms, Maximum = 319ms, Average = 319ms

Answer found here:

http://209.85.165.104/search?q=cach.../+how+to+quit+telnet&hl=en&ct=clnk&cd=3&gl=us

"hit ctrl-] (yep, control and the right-bracket). That will return you to
a telnet command prompt. From there you can enter the quit command (q is
sufficient) and you will be returned to your usual Windows command
prompt."

Useful to know. Thank you for posting back.
 
B

Barry OGrady

Spin said:
Gurus,

When you open up a command prompt window and run a telnet test to a host
(for example: telnet cnn.com 80), if the test is successful (remote host
is listening) you get a bunch of "-" marks down the left-hand side of the
window if you keep pressing ENTER. But, how do you exit out of this?
Frequently I have to close the CMD window and re-open so I can run a test
to against another computer (IP host). Thoughts?

^]

Barry
=====
Home page
http://members.iinet.net.au/~barry.og
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top