06-07-2013
The reason for CTRL+J is it translates to ASCII 10 - a UNIX newline character. <Return> is CTRL+M ASCII 13
This User Gave Thanks to jim mcnamara For This Post:
10 More Discussions You Might Find Interesting
1. Solaris
Our old E5500 was just turned off (planned :rolleyes: ) and the application was moved to a V480.
Now if I login to the V480 and try to sudo to root my connection hangs, and I can not telnet to the E5500 after it was powered on again. I get "connection refused". Telnet to this machine was... (5 Replies)
Discussion started by: kjbaumann
5 Replies
2. Shell Programming and Scripting
Hi ,
i am a beginner in AIX.
please find my doubt
I am calling the below script named test_1 by " sh test_1 | telnet "
cmd1="var1=100"
echo open $Infahost
sleep 1
echo $Infaftplogin
sleep 1
echo $Infaftppasswd
sleep 1
echo $cmd1
sleep 5
echo $var1
sleep 5
echo exit (11 Replies)
Discussion started by: sam99
11 Replies
3. Shell Programming and Scripting
Hi All,
I am working on AIX 5.3.
My requirement is to telnet to a server and scp a file from another server
In my shell script i am using telnet to enter to a server and i am echoing the password as below
echo open $Infahost
sleep 1
echo $Infaftplogin
sleep 1
echo $Infaftppasswd... (3 Replies)
Discussion started by: sam99
3 Replies
4. Shell Programming and Scripting
Hi,
Whenever i am trying to telnet to server i am getting frequent error
Authorized Login: prtsrc's Password:
/dev/pts/171: Password read timed out -- possible noise on port
when i am rerunning the same it is working fine
thanks,
sam (2 Replies)
Discussion started by: sam99
2 Replies
5. Solaris
hi this is hrushi i have issue regarding solaris(9 version)
when i telnet from solaris to linux machine it displaying message like connection closed by forine host ...when i telnet from linux to solaris its working fine ...help me its urgent and i'm new to solaris 9 (2 Replies)
Discussion started by: ghrushi84
2 Replies
6. Shell Programming and Scripting
Hi Experts,
I am using perl to telnet on cisco boxes. We have this stupid cisco node which does not support "terminal Length0" command.
Since I am using Net::Telnet and capturing output with
@output = $telnet->cmd('cmd');
Say
@output = $telnet->cmd('show version');
Now problem... (2 Replies)
Discussion started by: mtomar
2 Replies
7. UNIX for Dummies Questions & Answers
Greetings! My name is Jerry. I am a long time IBM i-series (AS/400) admin. I am the solo IT guy at a $50M company, we run mostly Windows servers on virtual machines, I do have one i-series, and one p-series.
Recently, we have decided to go with a legacy product that is proven and bulletproof, it... (0 Replies)
Discussion started by: jeveretts
0 Replies
8. Solaris
Hi Gurus,
I have solaris 10 server where I can telnet to one host and port <20011> with no problem..but when I am trying to telnet to another host same port (port is listening) I am not getting any success...it just says trying....
Now that I have both hosts listed in the /etc/hosts file,... (4 Replies)
Discussion started by: mohullah
4 Replies
9. Red Hat
Hi All!
for lab purposes i need to run telnet server on my RedHat 7 machine.
i installed the package: telnet-server using yum.
i read that i need to edit the telnet file under /etc/xinetd.d
the problem is that there is no telnet file in that folder.
the telnet server install completed... (9 Replies)
Discussion started by: guy3145
9 Replies
10. UNIX for Beginners Questions & Answers
In the below script, i want to check telnet port status of list of servers, here where ever port working i am getting output. where ever port is not working (where ever trying) there it's command stuck, there it's needed manual interruption like ctrl+c.
without interception i want run this... (1 Reply)
Discussion started by: rajiv
1 Replies
pty(4) Kernel Interfaces Manual pty(4)
Name
pty - pseudoterminal driver
Syntax
pseudo-device pty[n]
Description
The driver provides support for a device-pair termed a pseudoterminal. A pseudoterminal is a pair of character devices, a master device
and a slave device. The slave device provides processes with an interface identical to that described in However, whereas all other
devices that provide the interface described in have a hardware device of some sort behind them, the slave device has, instead, another
process manipulating it through the master half of the pseudoterminal. That is, anything written on the master device is given to the
slave device as input and anything written on the slave device is presented as input on the master device. The slave device can be opened
multiple times, while the master half can be opened only once.
If no optional n value is given defining the number of pseudoterminal pairs to be configured, 16 pseudoterminal pairs are configured. All
pseudoterminal lines should have a corresponding entry in the /etc/ttys file. This must be done to insure that logins that use pseudoter-
minals will be tracked in the utmp and wtmp files.
The following calls apply only to pseudoterminals:
TIOCSTOP
Stops output to a terminal (for example, like typing CTRL/S). Takes no parameter.
TIOCSTART
Restarts output (stopped by TIOCSTOP or by typing CTRL/S). Takes no parameter.
TIOCPKT
Enable/disable packet mode. Packet mode is enabled by specifying (by reference) a nonzero parameter and disabled by specifying (by
reference) a zero parameter. When applied to the master side of a pseudoterminal, each subsequent from the terminal will return
data written on the slave part of the pseudoterminal preceded by a zero byte (symbolically defined as TIOCPKT_DATA), or a single
byte reflecting control status information. In the latter case, the byte is an inclusive-or of zero or more of the bits:
TIOCPKT_FLUSHREAD
whenever the read queue for the terminal is flushed.
TIOCPKT_FLUSHWRITE
whenever the write queue for the terminal is flushed.
TIOCPKT_STOP
whenever output to the terminal is stopped by typing CTRL/S.
TIOCPKT_START
whenever output to the terminal is restarted.
TIOCPKT_DOSTOP
whenever the stop character is CTRL/S and the start character is CTRL/Q.
TIOCPKT_NOSTOP
whenever the start and stop characters are not CTRL/S and/or CTRL/Q.
This mode is used by and to implement a remote-echoed, locally flow-controlled (using CTRL/S or CTRL/Q, or both) remote login with
proper back-flushing of output. It can be used by other similar programs.
TIOCREMOTE
A mode for the master half of a pseudoterminal, independent of TIOCPKT. This mode causes input to the pseudoterminal to be flow
controlled and not input edited (regardless of the terminal mode). Each write to the control terminal produces a record boundary
for the process reading the terminal. In normal usage, a write of data is like the data typed as a line on the terminal; a write of
0 bytes is like typing an end-of-file character. TIOCREMOTE can be used when doing remote line editing in a window manager, or
whenever flow-controlled input is required.
TIOCMASTER
Allows the master to have complete control over the pseudoterminal and causes the slave side to sleep until the master relinquishes
control. This is useful in preventing changes on the pseudoterminal from going undetected and being reset by the master.
Files
(master pseudoterminals)
(slave pseudoterminals)
See Also
tty(4), MAKEDEV(8)
pty(4)