DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Administering the ttymon port monitor

Identifying ttymon processes

The ps command lists all running processes, including ttymon processes. Because ttymon port monitors fork a process to handle each connection request, the number of ttymon-related entries that appear in the output of a ps listing may be greater than the number of running ttymon port monitors. To identify ttymon and other processes, enter the following command:

ps -ef

The following is example output:

    UID   PID  PPID  C    STIME TTY      TIME COMMAND
   root     0     0  0 17:30:30 ?        0:06 sched
   root     1     0  0 17:30:30 ?        1:00 /sbin/init
   root     2     0  0 17:30:30 ?        0:01 pageout
   root     3     0  0 17:30:30 ?        0:20 bdflush
   root     4     0  0 17:30:30 ?        0:00 kmdaemon
   root  8215     1  0 12:49:52 ?        0:03 /usr/slan/lib/admdaemon
   root  8216     1  0 12:49:49 ?        0:05 /usr/sbin/cron
   root  8223     1  0 12:49:51 ?        0:01 /usr/sbin/hdelogger
   root  8224     1  0 12:49:51 ?        0:04 /usr/lib/saf/sac -t 300
   root  8226     1  0 12:49:49 ?        0:03 /usr/lib/saf/ttymon -g -m ldterm
   root  8230  8224  0 12:50:05 ?        0:02 /usr/lib/saf/listen -m inet/tcp0 tcp
   root  8234  8224  0 12:50:07 ?        0:04 /usr/lib/saf/ttymon
   root  8235  8224  0 12:50:08 ?        0:08 /usr/lib/saf/ttymon
   root 12378     1  0 14:26:21 console  0:07 -sh
   root   104     1  0 11:08:15 ?        0:09 /usr/sbin/cron
   root  8335  8235  0 14:43:34 tp/15    0:00 /usr/lib/saf/ttymon
   root 12453 12378  0 15:06:36 console  0:01 ps -ef
When a ttymon port monitor forks a child to process a connection request (that is, to do baud rate searching, set final termio options, and so on, before invoking the service), the controlling terminal is identified in the ``TTY'' field for the child process. (In the case of ttymon, the controlling terminal is the port. Question marks indicate there is no controlling terminal associated with the process. The ps command does not report any information about the SAC daemon.) For the parent ttymon port monitor process, this TTY field will be empty. In the example, two ttymon port monitors with process IDs 8234 and 8235 are running. Both were started by the SAC daemon which has process ID 8224.

The output of the ps command does not identify the port monitors' pmtags. The pmtag and process ID of a specific port monitor can be obtained using the who -l command.


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004