

ttystat                      Command                      ttystat




Get

/eettcc/ttttyyssttaatt [ -dd ] _p_o_r_t

ttystat checks  the status of the  specified asynchronous port in
directory /dev.  It normally just returns an exit status that in-
dicates the  status of the port.  The option  -d tells ttystat to
print the status of the port on the standard output.

Only the superuser root can execute ttystat.

***** Example *****

The following example prints the status of port /dev/com2r:


        /etc/ttystat -d com2


If /dev/com2r is enabled, ttystat prints:


        com2r is enabled


ttystat finds the port status from the /etc/ttys file.

***** Files *****

/eettcc/ttttyyss       -- Terminal characteristics file

***** See Also *****

commands, disable, enable, ttys

***** Diagnostics *****

ttystat returns one  if the port is enabled and  zero if the port
is disabled.  It returns -2 if an error occurs.

















COHERENT Lexicon                                           Page 1


