Figure 5-3 Retrieving Output From Fup - HP TACL Programming Manual

Tandem advanced command language
Table of Contents

Advertisement

Initiating and Communicating With Processes
Using the INLINE Facility
5–10
Use the routine in Figure 5-3, inline_fup_log, to interact with FUP and send
output to a variable, log, for FUP output. The routine displays the entire output
variable at the end. The routine accepts two file name arguments and retrieves
information about each file. To use this routine, load the associated file and enter:
inline_fup_log file1 file2
Figure 5-3. Retrieving Output from FUP
?SECTION inline_fup_log ROUTINE
#FRAME
#PUSH file1 file2
#INLINEPREFIX
#INLINETO
log
#SET #INLINEPREFIX +
#SET #INLINETO log
SINK [#ARGUMENT /VALUE file1/ FILENAME]
SINK [#ARGUMENT /VALUE file2/ FILENAME]
FUP /INLINE/
+ info [file1]
+ info [file2]
#INLINEEOF
INLTO
== Display the results
#OUTPUT Here are the contents of the output log:
#OUTPUTV log
#OUTPUT End of the log.
#UNFRAME
107365 Tandem Computers Incorporated
== Create a new level of #INLINEPREFIX
== Create a new level of #INLINETO
== Create a variable to contain output
== Set the new prefix to "+"
== Associate log with process output
== Start FUP with the INLINE option
== Send a command to FUP
== Send a second command to FUP
== Stop FUP
== Stop logging FUP output

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents