Ttyadm

Team-Fly    

Solaris™ Operating Environment Boot Camp
By David Rhodes, Dominic Butler
Table of Contents
Chapter 14.  Connecting Serial Devices


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 onto pmadm, where it is inserted into the _pmtab file. In fact, if we compare the earlier _pmtab entry to the output above we should see that they both match. Table 14.6 shows what each of the parameters in the earlier example refers to.

Table 14.6. Terminal Ttyadm Parameters

Option

Meaning

-l contty5H

Specify the line settings (see below)

-d /dev/term/a

Device used for the (incoming) line

-T vt100

Sets the TERM environment variable to vt100

-s /usr/bin/login

Name of the service that runs on connection

-S y

Enable software carrier


    Team-Fly    
    Top
     



    Solaris Operating Environment Boot Camp
    Solaris Operating Environment Boot Camp
    ISBN: 0130342874
    EAN: 2147483647
    Year: 2002
    Pages: 301

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net