08-09-2012
You can try redirecting /dev/null into it. telnet hostname port </dev/null
It should connect, try and read input from /dev/null, get EOF, and quit.
telnet may not really be the tool for the job here, however! It's an interactive program and very difficult to automate. netcat (nc) would be better suited if you can get it, it's designed to be noninteractive from the first.
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. Solaris
we disabled telnet on solaris 9 via previous a thread. We use CMS (call management system) supervisor which used port 23 (telnet). We cannot use telnet via local directive and it was shut down as stated when we shut down telnet in the inetd file. I cannot now log into the CMS box since port 23 is... (3 Replies)
Discussion started by: panzerkw
3 Replies
2. Shell Programming and Scripting
Hi,
I would like to create a simple script that will telnet a number of IP and Ports one after the other to confirm connectivity to those addresses.
I don't need to log on, just output to a file what the response is, i.e Escape Character, connectivity refused etc.
Complete newbie to... (6 Replies)
Discussion started by: asou
6 Replies
3. Shell Programming and Scripting
Hi,
i have typed telnet yahoo.com 80 in command prompt
it displays as a blank command prompt page titling as Telnet Yahoo.com
Other than that i am not able to get anything. can anyone sort me out the reason for this (12 Replies)
Discussion started by: satheeshkr_cse
12 Replies
4. Shell Programming and Scripting
Hi
I have a perl script code in which connecting with db2 database and doing some process. My perl script code and db2 database server present in the same unix server. I am connecting and executing perl script code via windows telnet. Now my question is i could not able to connect db2 server... (4 Replies)
Discussion started by: solo123
4 Replies
5. Shell Programming and Scripting
Hi,
The code below is used to telnet to list of devices and configure them. The program executes in this manner:
1. telnet to the first device in file.txt
2. one the telnet command is executed a "press any key to continue" prompts.
3. once a return key is executed it ask for username,... (1 Reply)
Discussion started by: sureshcisco
1 Replies
6. UNIX for Dummies Questions & Answers
Hi,
Hope all your are doing well. Need a suggestion from you.
I am writing an automated shell script that will effectively check the telnet connectivity with different backends from present deployment server.
Ideally, this script reads each backend hostname from a configuration file and fires... (4 Replies)
Discussion started by: bhaskar_m
4 Replies
7. Shell Programming and Scripting
I want the text based Star Wars movie at towel.blinkenlights.nl to loop infinitely.
It plays the movie and then disconnects my session? Can anyone think of a way to make my unix machine automatically reconnect over and over?
EDIT
no commands are required are the connection its just in and... (3 Replies)
Discussion started by: herot
3 Replies
8. IP Networking
Hi,
I am trying to set up a dev environment and I have Ubuntu server (10.16.1.92) and a CentOS VM (10.16.3.235) on this. On the CentOS I have a program running on port 5433. Now my problem is that I am unable to telnet this port from another Windows server whereas I can telnet port 22 from... (5 Replies)
Discussion started by: rishav
5 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I need to test telnet connections using port number for few hosts.
Could you please help me?
Thanks !! (1 Reply)
Discussion started by: skhichi
1 Replies
10. Solaris
Hi guys.
You'd have to excuse me a bit, as I'm a noob. I really try to avoid asking questions and do research for whatever linux issues that may arise.
I am experiencing a long wait for the shell to come up when I ssh or telnet into a Sunos 5.10 environment.
It takes 70 seconds to give me... (12 Replies)
Discussion started by: gpenco
12 Replies
LEARN ABOUT SUNOS
mconnect
mconnect(1) User Commands mconnect(1)
NAME
mconnect - connect to SMTP mail server socket
SYNOPSIS
mconnect [-p port] [-r] [hostname]
DESCRIPTION
The mconnect utility opens a connection to the mail server on a given host, so that it can be tested independently of all other mail soft-
ware. If no host is given, the connection is made to the local host. Servers expect to speak the Simple Mail Transfer Protocol (SMTP) on
this connection. Exit by typing the quit command. Typing EOF sends an end of file to the server. An interrupt closes the connection immedi-
ately and exits.
OPTIONS
The following options are supported:
-p port Specify the port number instead of the default SMTP port (number 25) as the next argument.
-r "Raw" mode: disable the default line buffering and input handling. This produces an effect similar to telnet(1) to port
number 25.
OPERANDS
The following operand is supported:
hostname The name of a given host.
USAGE
The mconnect command is IPv6-enabled. See ip6(7P).
FILES
/etc/mail/sendmail.hf help file for SMTP commands
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
telnet(1), sendmail(1M), attributes(5), ip6(7P)
Postel, Jonathan B., RFC 821, Simple Mail Transfer Protocol, Information Sciences Institute, University of Southern California, August
1982.
SunOS 5.10 9 Nov 1999 mconnect(1)