Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


ttystat                      Command                      ttystat




Get

/etc/ttystat [ -d ] port

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 *****

/etc/ttys       -- 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


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026