O'Reilly logo

Solaris™ Operating Environment Boot Camp by Dominic Butler, David Rhodes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required