Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ trty(1) — bsd — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dlty(1)

inty(1)

lty(1)

TRTY(1)                         Domain/OS BSD                          TRTY(1)




NAME
     trty - test a type trait.

SYNOPSIS
     trty [options] type_name trait_name

DESCRIPTION
     trty tests whether some type supports a given trait. It prints a message
     and returns a status that a shell can test.

     Some built-in types support some traits, other traits have their type
     managers loaded dynamically. Note that trty can test whether a trait has
     built-in support only on your own node. The -n option does not let you
     test for built-in support in another node. trty will test for dynamic
     support on your own or on another node.


     type_name (required)
                    Specify the name of type to be tested.

     trait_name (required)
                    Specify the name of the trait to be tested.

OPTION
     -n node_spec   Specify the node on which the type is to be tested.  You
                    may also specify the entry directory of a volume mounted
                    for software installation, as shown in the example below.
                    If this option is omitted, the type is tested on the
                    current node.

EXAMPLES
     Please note that these examples may not work exactly as shown unless you
     have these named traits and type installed on your node.

     $ trty net_iic io_oc
     Type "net_iic" does not support trait "io_oc".

     The following example demonstrates a test on a volume mounted for
     software installation

     $ trty net_iic net_hdwr -n/mounted_vol
     Type "net_iic" supports trait "net_hdwr".

     The trty program produces a status that a shell (in this case, the Aegis
     shell) can test for success or failure.

     $ if trty net_iic net_hdwr >/dev/nul
     $_ then args OK
     $_ else args Oops
     $_ endif
     OK


     $ if trty net_iic io_oc >/dev/nul
     $_ then args OK
     $_ else args Oops
     $_ endif
     Oops


SEE ALSO
     dlty(1), inty(1), lty(1)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026