A/UX 3.0: How to Set tty to Work With cu (8/94)


What tty do I use with cu?

The Macintosh has two serial ports called tty0 and tty1. The cu command is used to dial out and requires complete control of the serial port you tell it to use. That means that the getty process, which runs on serial ports waiting for users to dial in, must not be active on a serial port that is being used for dial-out purposes.

To set up the serial port so that it can be used for either dial-in or dial-out purposes, modify the /etc/inittab file so that the value of the action field of the serial port is respawn. Here is an entry for tty0:

00:2:respawn:/etc/getty tty0 mo_2400 # Port 0 (modem)

When you are finished editing /etc/inittab, run init q to stop any getty process that may currently be running on the port.

The cu command uses the /usr/lib/uucp/Devices file to get the information it needs about the device to use when establishing the connection. Here is an entry in the Devices file for a Hayes 2400 baud modem attached to tty0:

ACU tty0 - 2400 hayes

Here is an example of a minimal cu command line that specifies a telephone number:

cu 4155551212

When a telephone number appears on the cu command line, cu searches the Devices file for an entry that begins with ACU. Since we set up the Devices file with a line that starts with ACU, it will attempt to dial through serial port 0 (modem) at 2400 baud.

NOTE: The A/UX Network System Administration manual chapter on "Setting Up the UUCP System" contains complete descriptions of the procedures outlined above.


22 Aug 1994 - Updated for A/UX 3.0 and /usr/lib/uucp/Devices file.
08 Aug 1992 - REVIEWED For technical accuracy.

Support Information Services

Published Date: Feb 18, 2012