Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

User Commands (g - j) gtacl(1)
The following conditions limit the effectiveness of gtacl ltering:
Filtering can be used only for data passing through OSS environment standard input, out-
put, and error les and Guardian environment IN, OUT, and STDERR les. Any les
directly opened by a Guardian environment process cannot be ltered.
Some Guardian processes do not accept a process le as an input or output le. Filtering
will not work with such Guardian processes.
If ltering is used with redirection and either the -c command or -cv command option, it
cannot be used for ltering standard input. When either of these options is specied,
gtacl ignores its standard input le. For example, the following command will not work
because the input from myle.tgal is ignored:
gtacl -c tgal /OUT $s.#hold/<myle.tgal
Instead, either use an explicit Guardian input le:
gtacl -c tgal /IN MYFILE, OUT $S.#HOLD/
or use the -p pathname option to run TGAL directly:
gtacl -p tgal < myle.tgal | lp -d hold
When the -nowait option is used with input/output ltering, the child process can fail to
do either of the following:
open one or more of the gtacl standard les because gtacl has stopped running
access one or more of the gtacl standard les because gtacl has stopped running
To avoid these problems, do not use the -c, -cv, -i,or+i options. Use only les that can
be opened from within the Guardian environment for standard input and output when you
use the -nowait option.
Use in Shell Scripts
Guardian processes typically open a Guardian environment disk le for output by requesting pro-
tected or exclusive access. This practice can conict with use of exclusion mode by an OSS pro-
cess.
For example:
gtacl -p FUP INFO *
fails if it is invoked from an OSS shell script and the output of the script is redirected to a Guar-
dian disk le. Because the output le can be opened from the Guardian environment, gtacl does
not lter the output. However, because the output le is still open by the shell process executing
the script, FUP cannot open the le for exclusive access and terminates abnormally.
To avoid this problem when gtacl is used within a shell script, use the -i or +i option to force
input/output ltering, as follows:
gtacl -i -p FUP INFO *
OSS Environment Variables
The following OSS environment variables affect the execution of the gtacl command.
PMSEARCHLIST
If this variable is dened, gtacl uses the value if necessary to resolve a Guardian
le identier to nd the program specied with the -p or -prog option. The
527188-003 Hewlett-Packard Company 435