Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

Linux / Unix cu command

Quick links

About cu
Syntax
Examples
Related commands
Linux / Unix main page

About cu

Calls or connects to another Unix system, terminal or non-Unix system.

Syntax

cu [-c device | -l line ] [ -s speed ] [ -b bits ] [ -h] [ -n ] [ -t ] [ -d ] [-o | -e ] [ -L ] [ -C ] [ -H] telno | systemname [ local-cmd ]

-c device Force cu to use only entries in the "Type" field (the first field in the /etc/uucp/Devices file)
that match the user specified device, usually the name of a local area network.
-l line Specify a device name to use as the communication line. This can be used to override the search that would otherwise take place 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 taken from the /etc/uucp/Devices file record in which line matches the second field (the Line field). When the -l and -s options are both used together, cu will search the /etc/uucp/Devices file to check if the requested speed for the requested line is available. If so, the connection will be made at the requested speed, otherwise, an error message will be printed and the call will not be made. In the general case where a specified device is a directly connected asynchronous line (for instance, /dev/term/a), a telephone number (telno) is not required. The specified device need not be in the /dev directory. If the specified device is associated with an auto dialer, a telephone number must be provided.
-s speed Specify the transmission speed (300, 1200, 2400, 4800, 9600, 19200, 38400). The default value is "Any" speed which will depend on the order of the lines in the /etc/uucp/Devices file.
-b bits Force bits to be the number of bits processed on the line. bits is either 7 or 8. This allows connection between systems with different character sizes. By default, the character size of the line is set to the same as the current local terminal.
-h Set communication mode to half-duplex. This option emulates local echo in order to support calls to other computer systems that expect terminals to be set to half-duplex mode.
-n Request user prompt for telephone number. For added security, this option will prompt the user to provide the telephone number to be dialed, rather than taking it from the command line.
-t Dial a terminal which has been set to auto answer. Appropriate mapping of carriage-return to carriage-return-line-feed pairs is set.
-d Print diagnostic traces.
-o Set an ODD data parity. This option designates that ODD parity is to be generated for data sent to the remote system.
-e Set an EVEN data parity. This option designates that EVEN parity is to be generated for data sent to the remote system.
-L Go through the login chat sequence specified in the /etc/uucp/Systems file. For more information about the chat sequence, see TCP/IP and Data Communications Administration Guide
-C Run the local-cmd specified at the end of the command line instead of entering interactive mode. The stdin and stdout of the command that is run refer to the remote connection.
-H Ignore one hangup. This allows the user to remain in cu while the remote machine disconnects and places a call back to the local machine. This option should be used when connecting to systems with callback or dialback modems. Once the call- back occurs subsequent hangups will cause cu to terminate. This option can be specified more than once. For more information about dialback configuration, see remote(4) and  TCP/IP and Data Communications Administration Guide
telco When using an automatic dialler, specifies the telephone number with equal signs for secondary dial tone or minus signs placed appropriately for delays of 4 seconds.
systemname

Specifies a uucp system name, which can be used rather than a telephone number; in this case, cu will obtain an appropriate direct line or telephone number from a system file.

Examples

cu -s 38400 9=12015551234 - dials a system who's phone number is (201) 555-1235. This example is also using a 9 to get out of the building as well as a 1 to dial long distance. 

Related commands

cat
echo
stty
uname

Index

Category:
Linux / Unix

Companies:
Click here

Related Pages:

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope