Open System Services Programmer's Guide

Note the following about using this program:
If you give the program a process name qualified with the system name, such as \mysys.$sh,
the program fails with a TACL error.
If #INFORMAT is set to TACL, you must escape TACL special characters like the vertical bar
with a tilde: ~|
If you run a utility, such as cat, SCF, or VPROC, the "be" and "print" routines will hang.
The TACL program consists of the following procedures.
DescriptionProcedure
Starts a named OSSTTY process and an OSS shell process, setting up the necessary
redirection.
SH $name
Removes the specified previously defined OSSTTY/OSS shell environment.UNSH $name
Sends a single command to the specified previously defined OSSTTY/OSS shell
environment. Also displays any output from a prior command.
TELL $name command-string
Displays any output from the specified previously defined OSSTTY/OSS shell
environment.
PRINT $name
Enters interactive mode with the specified previously defined OSSTTY/OSS shell
environment. The user can enter commands and receive responses repeatedly,
BE $name
until <Ctrl-y> is entered. Entering <Ctrl-y> causes the procedure to exit interactive
mode, but leaves the OSSTTY/OSS shell environment intact.
Informs a previously defined OSSTTY environment that there is an interactive prompt
outstanding. (Used in the event that there is a prompt outstanding, but the
procedures do not recognize the prompt.)
RESET $name
The following steps illustrate the use of these procedures:
1. load the TACL macro (required once per TACL session).
TACL> load /keep 1/ sh
2. Start an OSSTTY process named $n1 and an OSS shell that uses $n1.
TACL> sh $n1
3. Send a pwd command to the shell and OSSTTY. There is no response because none is queued.
TACL> tell $n1 pwd
4. Send a cd command to the shell and OSSTTY. The queued response from the prior command
is displayed.
TACL> tell $n1 cd/usr/bdir/webserver
/G/SYSTEM/ADIR
The TACL procedures are shown in Example 51.
222 Managing I/O