Ttyadm

We've already mentioned that ttyadm is the helper program for ttymon and is used to generate the colon-separated string for the _pmtab file that we saw in the earlier example. We did this by embedding the ttyadm output into the pmadm command, but in this section we'll run ttyadm as a standalone program. This will enable us to see its output and let us examine the values supplied to it at the same time.

First, let's run the command we used in the earlier example:

hydrogen# ttyadm -l contty5H -d /dev/term/a –T vt100 -s
   /usr/bin/login –S y
/dev/term/a:::/usr/bin/login::contty5H::login\: ::vt100:y:
hydrogen#

This confirms that ttyadm simply returns a correctly formatted string to suit the parameters passed onto it. This string is passed ...

Get Solaris™ Operating Environment Boot Camp now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.