Open System Services Programmer's Guide
gtacl Utility
Using the gtacl utility is another way to mix development environments. gtacl runs a process
in the Guardian environment from the OSS environment and lets you use Guardian tools from the
OSS shell. You can use gtacl to start an interactive TACL process, execute a single Guardian
environment command, or run a Guardian environment program. Example 6 uses gtacl to run
the TACL STATUS command.
Example 6 Using gtacl to Run a TACL Command
$ gtacl -c 'status *, user'
You can also pipe (send) the output of a Guardian command or program to an OSS utility.
Example 7 pipes the output of the TACL FILES command to the OSS grep utility.
Example 7 Using gtacl to Pipe TACL Command Output to an OSS Utility
$ gtacl -c 'files' | grep -c 'tdm'
When using gtacl, keep in mind that block-mode applications, such as TEDIT and Pathway,
require 6530 terminal emulation. 6530 terminal emulation is available only in the Guardian
environment, which means that block mode applications are not accessible through gtacl.
For more information about gtacl, refer to the Open System Services User’s Guide and to the
gtacl(1) utility reference page either online or in the Open System Services Shell and Utilities
Reference Manual.
OSSTTY
OSSTTY provides a way for OSS processes to interact with Guardian processes using the OSS
standard files. Using OSSTTY, an OSS process can redirect its standard files (stdin, stdout,
stderr) to a Guardian process or to a Guardian EDIT file. For example, the following command
uses OSSTTY to redirect the stdin of the OSS child process to $vhs, and the stdout to $zhome:
TACL> osh/ in $vhs, out $zhome/ -osstty
For more information on using OSSTTY, see Chapter 7 (page 207). A complete description of the
osstty command options is given in the Open System Services Management and Operations
Guide.
OSS Tools
The following tools are available to you from the OSS environment at the OSS shell prompt. If you
provide your own tools, be aware that OSS environment tools run faster as compiled programs
than as OSS shell scripts.
Editing Tools
HP provides four text-editing tools in the OSS environment:
• ed, a line editor. For detailed information, refer to the Open System Services User’s Guide
and to the ed(1) reference page either online or in the Open System Services Shell and
Utilities Reference Manual.
• sed, a stream editor. For detailed information, refer to the sed(1) reference page either
online or in the Open System Services Shell and Utilities Reference Manual.
• vi, a screen-oriented line editor. For detailed information, refer to the Open System Services
User’s Guide and to the vi(1) reference page either online or in the Open System Services
Shell and Utilities Reference Manual.
• vim, the Vi IMproved command-line editor, beginning with the H06.25 and J06.14 RVUs.
For detailed vim information, see the vim(1) reference page.
44 Overview of the OSS Programming Environment