Using the INLINE Facility
Initiating and Communicating With Processes
5–10
107365 Tandem Computers Incorporated
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 == Create a new level of #INLINEPREFIX
#INLINETO == Create a new level of #INLINETO
log == Create a variable to contain output
#SET #INLINE == Set the new prefix to "+"
#SET #INLINETO log == Associate log with process output
SINK [#ARGUMENT /VALUE file1/ FILENAME]
SINK [#ARGUMENT /VALUE file2/ FILENAME]
FUP /INLINE/ == Start FUP with the INLINE option
+ info [file1] == Send a command to FUP
+ info [file2] == Send a second command to FUP
#INLINEEOF == Stop FUP
INLTO == Stop logging FUP output
== Display the results
#OUTPUT Here are the contents of the output log:
#OUTPUTV log
#OUTPUT End of the log.
#UNFRAME