UNGETTY(M) XENIX System V UNGETTY(M)
Name
ungetty - Suspends/restarts a getty process.
Syntax
ungetty [-r, -t] line
Description
ungetty is used to suspend and restart a getty process on a
serial line that has been set up as a dial-in/dial-out port.
dial(M) invokes ungetty to toggle the port from dial-in to
dial-out. (See /usr/lib/uucp/dial.c for a sample program
which uses ungetty.)
When ungetty is run on a serial line, it checks to see if
the line is listed in /usr/lib/uucp/L-devices. If so, it
suspends the getty process on that line.
ungetty has the following options:
-r Restart a disabled line.
-t Test a line to see if it is enabled.
ungetty returns the following values when it is called with
no options:
0 The line is not enabled.
1 Successful. The getty on that line is suspended.
2 Could not suspend the getty. This means that the line
is being used by another program.
ungetty returns the following values when used with the -t
and -r options:
0 -r or -t:
Line not enabled.
1 -r:
Successfully restarted.
-t:
Line needs restarting.
2 -r or -t:
Cannot restart getty.
See Also
cu(C), disable(C), enable(C), uucp(C), dial(M)
Page 1 (printed 8/7/87)