cu(1)

cu(1)

NAME

cu - call another (UNIX) system; terminal emulator

SYNOPSIS

cu [-sspeed ] [-lline ] [-h] [-q] [-t] [-dlevel ] [-e-o] [-m] [-n] [ telno systemnamedir ]

XPG4 Syntax:

cu [-sspeed ] [-lline ] [-h] [-q] [-t] [-d] [-e-o] [-m] [-n] [ telno systemnamedir ]

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 ®les.

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 ®rst available line having the right speed. When the -loption is

 

used

without

the -s

option,

the speed

of a line is obtained from ®le

 

/etc/uucp/Devices.

When the -land

-soptions 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 speci®ed 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 speci®ed 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 ®le until a connection is made

 

or all the entries are tried.

 

 

dir

Using

dir ensures that

cu uses the line speci®ed by the -loption.

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 Release 11i: December 2000

− 1 −

Section 1153

c