HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)

c
cu(1) cu(1)
NAME
cu - call another (UNIX) system, terminal emulator
SYNOPSIS
cu [-s speed][-l line][
-h][-q][-t][-d level][-e
-o][-m][-n][telnosystemnamedir]
XPG4 Syntax
cu [-s speed][-l line][
-h][-q][-t][-d][-e-o
][-m][-n][telnosystemnamedir]
DESCRIPTION
cu calls up another system, which is usually a UNIX operating system, but can be a terminal or a non-
UNIX operating system. cu manages all interaction between systems, including possible transfers of
ASCII files.
Options
cu recognizes the following options and command-line arguments:
-sspeed Specify the transmission speed (110, 150, 300, 600, 1200, 2400, 3600, 4800, 7200, 9600,
19200). The default value is 300.
-lline Specify a device name to use as the communication line. This can be used to override
searching for the first available line having the right speed. When the -l option is
used without the -s option, the speed of a line is obtained from file
/etc/uucp/Devices
. When the -l and -s options are used simultaneously,
cu searches /etc/uucp/Devices
to determine whether the requested speed for
the requested line is available. If so, the connection is made at the requested speed;
otherwise, an error message is printed and the call is not made. The specified device
is usually a directly connected asynchronous line (such as
/dev/ttyapb ). In this
case, a telephone number is not required, but the string dir can be used to specify
that a dialer is not required. If the specified device is associated with an auto-dialer, a
telephone number must be provided.
-h Emulate local echo, supporting calls to other computer systems that expect terminals
to be set to half-duplex mode.
-q Use ENQ/ACK handshake (remote system sends ENQ, cu sends ACK.)
-t Used when dialing an ASCII terminal that has been set to auto-answer. Appropriate
mapping of carriage-return to carriage-return-line-feed pairs is set.
-dlevel Print diagnostic traces. level is a number from 0-9, where higher levels produce more
detail in the diagnostic messages.
-d (XPG4 only.) Print diagnostic traces. The level is always 9.
-e (-o) Generate even (odd) parity for data sent to the remote.
-m Specify a direct line that has modem controls. Modem controls are ignored by cu.
-n Cause the telephone number that cu dials to be requested interactively from the user
rather than taking it from the command line.
telno When using an automatic dialer, telno is the telephone number, with equal signs for
secondary dial tone or minus signs for delays appropriately placed in the telno string.
systemname A UUCP system name can be used instead of a telephone number (see uucp(1)); in
this case, cu obtains an appropriate direct line or telephone number from
/etc/uucp/Systems (including appropriate baud rate). cu dials each telephone
number or direct line for systemname in the Systems file until a connection is made
or all the entries are tried.
dir Using dir ensures that cu uses the line specified by the -l option.
After making the connection, cu runs as two processes:
transmit process reads data from the standard input and, except for lines beginning with ˜, passes
it to the remote system;
receive process accepts data from the remote system and, except for lines beginning with ˜, passes
it to the standard output.
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 1153