NAME LockSerial - Serial Port Access Control for Non-UUCP Programs SYNOPSIS LockSerial [-D device] [-U unit] [-A] "command" DESCRIPTION LockSerial is used to run programs (e.g., terminal programs) after ensuring that a given serial port and unit is free. It locks the port, runs the program, then unlocks the port. The "command" argument should NOT run things in the background, since the port will be unlocked too early. You can RUN the lockserial command itself, if you wish. GETTY need not be running, but if it is it will maintain a port lock. When GETTY sees the lock request it will close the device and relinquish control to the requesting program. UUCICO locks and unlocks the serial port internally to itself, DO NOT RUN UUCICO WITH THIS COMMAND. This change was made because the hacks in GETTY to track individual units within a serial device were broken and had to be removed. This also allows getty to close its reference on the device before another program opens it, thereby avoiding some well known bugs in the A2232 serial device. WARNING You cannot run auto-detach programs with LockSerial. Such programs will detach from the CLI and appear to have exited, causing LockSerial to give Getty the serial port back. LockSerial utilizes the OwnDevUnit.Library. Programs that directly support this library do not need to be run with the LockSerial program. OPTIONS -D device The serial device, default serial.device -U unit The unit number, default 0 -A Do not lock up waiting for access if someone else has currently got the device locked. Command The command to run (if the command takes args, the entire thing should be in quotes) EXAMPLE 1> LockSerial -U2 "XBBS UNIT 2" REFERENCES UUMan:Getty