The UUCP Devices Data

schedule The time schedule when the local system can call the remote one: Any the system can call on any day Never the system should never call but should just wait to be called Wk any weekday any weekday could be also specified: Su, Mo, Tu, We, Th, Fr, and Sa; the time subfield is specified by two 24−hour clock times separated by a dash: 1900–2300 specifies time between 7 and 11 p.m device_type The type of a device to be used for the call: ACU for Automatic Call Unit ttynn for direct links ttynn is the name of a special device file in the dev directory TCP for TCPIP connection the port for uucp service is specified in the etcservices file speed The speed in bps for a device some systems also allow the speed range. phone_number The dialer sequence to be used by the modem to call the remote system. chat_script A string describing the initial conversation between two systems. More details follow. The chat_script presents a text string of the remainder of the entry, after the phone_number. It consists of expect−send pairs, separated by spaces, with optional subexpect−subsend pairs separated by hyphens, as in the following example: The expect and subexpect fields specify literally what the system expects to receive from the remote system. This is the reason why loginpassword expect fields are specified as ogin: and ssword:. These words are sufficient for unique loginpassword identification and also cover a number of possible Login: and Password: prompting from the remote system; they even allow the additional leading text. By the way, the subsend field BREAK enables adjustment of the modem speed between two systems of course if the device supports it — see Chapter 11, Terminals. When uucico is invoked, it scans the UUCP systems configuration file for the name of the system to call, as well as for a valid time to call. If it is a time to call, it checks the device type and speed fields, and other device−related configuration data. The next step is to check for locked files for that device type in the spool directory; if locked files exist, it means this device type is already in use. Then, uucico checks if there is another device of the requested type and speed to use it. If no device is available, uucico returns to the UUCP system configuration file to see if there is another configuration entry for the same system. If not, the call is terminated and postponed until later.

24.6.2.2 The UUCP Devices Data

The third field in each entry in the UUCP systems configuration file gives the name of a device type to be used when calling the remote system. If the direct link is in question, this is a special device file for the corresponding serial port; otherwise, additional information about the device of the specified type is needed. The specified device type is actually a pointer to an entry in another configuration file, the UUCP devices configuration file Devices on BNU UUCP, or L−devices on Version 2 UUCP. The contents of the UUCP devices configuration files for two UUCP versions are different, and the files will be discussed separately. 614 type dataport dialer_port speed dialer_token_pairs where type The type of link: Direct for a line to a computer, modem, or LAN switch to be used by the program cu test utility ACU for a modem connection network for TCPIP connection sys−name for direct links to a particular system sys−name dataport The device name of the port used for making the connection. For direct serial links and modems this is the name of the special file in the dev directory that corresponds to the serial port used for the UUCP link. dialer_port An optional field that is used for special type of ACU, and which specifies the dialer; otherwise it is ignored, the field has a dummy value: −. speed The baud rate of the device for modems and direct links; it can be also Any to match any speed requested in the Systems file. dialer_token_pairs The remainder of the line contains pairs of dialer names and tokens each pair represents a dialer and an argument to pass to that dialer defined in another file Dialcode. In the Version 2 UUCP, each port connected to a modem or direct cable to another system should be described in the L−devices file. An entry contains four fields and has the following format: type device call_unit speed where type The type of link: DIR for a direct link ACU for a modem connection TCP for TCPIP connection device The name of the special file in the dev directory that corresponds to the serial port used for the UUCP link. call_unit If a system uses a true ACU, two separate devices could be used to place the call: the dialer itself referred to as cua and the data line referred to as cul; for a smart modem with built−in dialer, this field has a dummy value: − or 0. speed The baud rate of the port for modems and direct links or 615

24.6.2.3 Other Configuration Data