HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)

t
telnet(1)
Kerberos telnet(1)
option. Omitting the -l option executes the default setting. Only one -l option is allowed.
-P Disable use of Kerberos authentication and authorization. When this option is specified, a pass-
word is required which is sent across the network in a readable form. (See sis(5).)
-f Allows local credentials to be forwarded to the remote system. Only one of -f or -F is allowed.
-F Allows local credentials to be forwarded to the remote system including any credentials that
have already been forwarded into the local environment. Only one of -f or -F is allowed.
Commands
The following commands are available in command mode. You need only type enough of each command to
uniquely identify it (this is also true for arguments to the
mode, set, toggle, and display com-
mands).
open [-l user] host [ port ]
Open a connection to the named host at the indicated port. If no port is specified,
telnet
attempts to contact a TELNET server at the standard TELNET port. The hostname can be
either the ofcial name or an alias as understood by
gethostbyname()
(see
gethostent(3N)), or an Internet address specified in the dot notation as described in
hosts(4). If no hostname is given,
telnet prompts for one. The -l option can be used to
specify the user name to use when automatically logging in to the remote system. Using
this option disables the TAC User ID option.
close Close a TELNET session. If the session was started from command mode, telnet
returns to command mode; otherwise telnet exits.
quit Close any open TELNET session and exit telnet. An end of file (in command mode) will
also close a session and exit.
z Suspend telnet.Iftelnet is run from a shell that supports job control, (such as csh(1)
or ksh(1)), the
z command suspends the TELNET session and returns the user to the shell
that invoked telnet. The job can then be resumed with the fg command (see csh(1) or
ksh(1)).
mode mode Change telnet’s user input mode to mode, which can be character (for ‘‘character at
a time’’ mode) or
line (for ‘‘line by line’’ mode). The remote host is asked for permission
to go into the requested mode. If the remote host is capable of entering that mode, the
requested mode is entered. In character mode, telnet sends each character to the
remote host as it is typed. In line mode, telnet gathers user input into lines and
transmits each line to the remote host when the user types carriage return, linefeed, or
EOF (normally ˆD; see stty(1)). Note that setting line-mode also sets local echo. Applica-
tions that expect to interpret user input character by character (such as more, csh,
ksh,
and
vi) do not work correctly in line mode.
status Show current status of telnet. telnet reports the current escape character. If
telnet is connected, it reports the host to which it is connected and the current mode.
If telnet is not connected to a remote host, it reports No connection. Once tel-
net
has been connected, it reports the local flow control toggle value.
display [argument ... ]
Displays all or some of the set and toggle values (see below).
? [command ] Get help. With no arguments, telnet prints a help summary. If a command is specified,
telnet prints the help information available about that command only. Help information
is limited to a one-line description of the command.
! [shell_command]
Shell escape. The SHELL environment variable is checked for the name of a shell to use to
execute the command. If no shell_command is specified, a shell is started and connected to
the user’s terminal. If SHELL is undefined, /usr/bin/sh is used.
send arguments
Sends one or more special character sequences to the remote host. Each argument can
have any of the following values (multiple arguments can be specified with each send
command):
escape Sends the current telnet escape character (initially ˆ]).
HP-UX 11i Version 1: September 2005 2 Hewlett-Packard Company Section 1971