|
|
1.1 root 1:
2:
3: ttystat Command ttystat
4:
5:
6:
7:
8: Get
9:
10: /eettcc/ttttyyssttaatt [ -dd ] _p_o_r_t
11:
12: ttystat checks the status of the specified asynchronous port in
13: directory /dev. It normally just returns an exit status that in-
14: dicates the status of the port. The option -d tells ttystat to
15: print the status of the port on the standard output.
16:
17: Only the superuser root can execute ttystat.
18:
19: ***** Example *****
20:
21: The following example prints the status of port /dev/com2r:
22:
23:
24: /etc/ttystat -d com2
25:
26:
27: If /dev/com2r is enabled, ttystat prints:
28:
29:
30: com2r is enabled
31:
32:
33: ttystat finds the port status from the /etc/ttys file.
34:
35: ***** Files *****
36:
37: /eettcc/ttttyyss -- Terminal characteristics file
38:
39: ***** See Also *****
40:
41: commands, disable, enable, ttys
42:
43: ***** Diagnostics *****
44:
45: ttystat returns one if the port is enabled and zero if the port
46: is disabled. It returns -2 if an error occurs.
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.