Table of Contents
|
|
$ . ~legion/setup.sh
or
$ source ~legion/setup.cshThe following style conventions are used in these tutorials:
There are three steps involved in using Legion tty objects:
Note that a shell does not have to watch its set tty object, and that multiple shells can watch the same tty object.
When you exit from a shell the tty_watch process will not automatically shut down. That is, it will continue to send information to the now defunct shell. This will bog down the tty process and may result in error messages. We therefore suggest that before you exit a shell you stop the tty_watch process.
There are two different ways to create and use tty objects in Legion, a simple approach, which will probably be acceptable for most users, and a complex approach.
Usage for legion_tty is:
legion_tty <context path>
$ legion_tty /tty_objects/mytty
To stop a tty_watch process started with legion_tty run the legion_tty_off command. This will end whatever tty_watch process is currently running in the current shell, although it will not destroy the tty object being watched.
First, if you do not already have a tty object you must use legion_create_object to create a tty object. Then use legion_set_tty to set a tty object for your shell. Remember that you can only have one tty object set per shell. If a tty object has already been set, legion_set_tty will just switch to the new one. Finally, use legion_tty_watch to start watching your current (set) tty object. The whole procedure looks something like this:
$ legion_create_object -c /class/ttyObjectClass /context_path/mytty $ legion_set_tty /context_path/mytty $ legion_tty_watch &
If you wish to create and set a tty object in one shell and watch it in another (see shell A's output in shell B), you should run legion_tty_watch in shell B.
E.g., in shell A, run:
$ legion_create_object -c /class/ttyObjectClass \ /tty_objects/mytty $ legion_set_tty /tty_objects/mytty
$ legion_tty_watch -c /tty_objects/mytty &
To direct the current tty object's output to a file object instead of standard output, use the legion_tty_redirect command. The example below redirects the current tty's object output to file object Foo. If no file object of that name exists, Legion will create a new one.
$ legion_tty_redirect Foo
$ legion_tty_unredirect Foo
$ legion_direct_output -c Foo -c /context_path/mytty
Other relevant on-line documents:
Last modified: Thu Jun 15 16:15:32 2000
|
[Testbeds] [Et Cetera] [Map/Search]
legion@Virginia.edu
|