cu(1) | cu(1) |
form where a circum¯ex (ASCII 94) precedes the character, as in ÃX. A null character can be speci®ed with Ã@. (A null ®rst character in the prompt implies a "null" prompt, which always appears to be satis®ed.) A circum¯ex is speci®ed by à Ã.
~%>[>]file | Divert output from the remote system to the speci®ed ®le until another Ä%> com- | ||||
| mand is | given. | When an output diversion is active, typing | Ä%> terminates it, | |
| whereas | Ä%> another®le terminates it and begins a new one. | The output diversion | ||
| remains | active | through a Ä& subshell, | but unpredictable | results can occur if |
| input/output diversions are intermixed with | Ä%take or Ä%put. The Ä%>> com- | |||
| mand appends to the named ®le. Note that these commands, which are interpreted | ||||
| by the transmit process, are unrelated to the Ä> commands described below, which | ||||
| are interpreted by the receive process. |
|
| ||
~susp | Suspend the cu session. susp is the suspend character set in the terminal when cu | ||||
| was invoked (usually ÃZ Ð see stty(1)). As in all other lines starting with tilde, a | ||||
| ~susp line must be terminated by pressing Return. |
|
Receive Process
The receive process normally copies data from the remote system to its standard output. A line from the remote that begins with Ä> initiates an output diversion to a ®le. The complete sequence is:
~>[>]: ®le
zero or more lines to be written to ®le
~>
Data from the remote is diverted (or appended, if >> is used) to ®le. The trailing Ä> terminates the diversion.
The use of Ä%put requires stty(1) and cat(1) on the remote side. It also requires that the current erase and kill characters on the remote system be identical to the current ones on the local system. Backslashes are inserted at appropriate places.
The use of Ä%take requires that the remote system support the echo and cat commands (see echo(1) and cat(1). Also, stty tabs mode should be set on the remote system if tabs are being copied without expansion. When connecting to a machine that uses the eighth bit as a parity bit, stty istrip mode should be set on the local system.
When cu is used on system X to connect to system Y and subsequently used on system Y to connect to system Z, commands on system Y can be executed if ÄÄ is used. For example, using the keyboard on system X, uname can be executed on Z, X, and Y as follows where lines 1, 3, and 5 are keyboard commands, and lines 2, 4, and 6 are system responses:
uname
Z ~!uname
X ~Ä!uname
Y
In general, Ä causes the command to be executed on the original machine; ÄÄ causes the command to be executed on the next machine in the chain.
EXTERNAL INFLUENCES
Environment Variables
LANG determines the language in which messages are displayed.
If LANG is not speci®ed or is set to the empty string, a default of "C" (see lang(5)) is used instead of LANG. If any internationalization variable contains an invalid setting, cu behaves as if all internationalization variables are set to "C". See environ(5).
International Code Set Support
Single- and
DIAGNOSTICS
Exit code is zero for normal exit;
c
− 3 − | Section 1−155 |