Technical article 106418

How do I do a direct connect using cu(C) between two machines?

OpenServer 6OpenServer 5

Written · Last revised

Problem

How do I do a direct connect using cu(C) between two machines?

Solution

The following steps will enable you to use the cu(C) command on the main machine to log in to the remote machine.

1. Attach the machines with a null modem cable into their serial ports.

2. Edit the file /usr/lib/uucp/Devices on the main machine to have a line that looks like:

Direct tty** - 9600 direct

where '**' is the serial port you are using on the main machine, such as 1a or 2a.

3. Enable the port of the remote machine (do this on the remote machine):

enable /dev/tty**

where '**' is the serial port you are using, such as 1a or 2a.

4. Disable the port of the main machine (do this on the main machine):

disable /dev/tty**

where '**' is the serial port you are using, such as 1a or 2a.

5. Check the permissions of the serial port on the main machine:

l /dev/tty**

The ownership and permissions settings should look like the following:

crw--w--w- 1 uucp  uucp     5, 0 Feb 14 12:00 /dev/tty**

If it does not, run the command:

chown uucp:uucp /dev/tty**

To connect to the remote machine from the main machine, type:

cu -x9 -ltty** dir

where '**' is the port of the main machine. Press the <Break> key until the lines are synchronized and you get a login prompt. To log in, you must have an account on the remote machine.

If you do not get a login prompt, read the cu -x9 output for any clues of what could be wrong. The -x9 shows detailed output of what is happening. Look in the manual under cu(C) for more information on cu.

Once you are logged in:

To copy from a remote machine to the machine you are on:

~%take remote_filename to_filename

To copy from the machine you are on to a remote machine:

~%put filename to_remote_filename

NOTE: On SCO UNIX Version 4.x, a bi-directional connect can be made by enabling the non-modem serial ports (tty1a for example) on both machines. See another article in this database titled:

"Basic configuration and command syntax for UUCP on SCO UNIX and XENIX."

From the Xinuos technical article database, record 106418. Reproduced with permission. The original is at www.sco.com/ta/106418, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.