EasyManua.ls Logo

HP TACL User Manual

HP TACL
235 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #125 background imageLoading...
Page #125 background image
Using INV and OUTV
Initiating and Communicating With Processes
107365 Tandem Computers Incorporated 5–17
Use the macro in Figure 5-7, fupin, to communicate with FUP using OUTV and a
static INV.
Figure 5-7. Communicating With FUP Using INV and OUTV
?SECTION fupin MACRO
#FRAME
PUSH in_variable == Create an IN variable
PUSH out_variable == Create an OUT variable
== Place a FUP command into the IN variable
#SET in_variable INFO STEIN.BOOK
FUP /INV in_variable, OUTV out_variable/
#OUTPUTV out_variable == Display FUP output
#UNFRAME
You can start a process in the background and send it commands from your terminal.
The following steps illustrate an interactive session with FUP:
1. Define the variables:
9> #PUSH input_queue output_queue prompt_string
termination_results
2. Start a FUP process that runs concurrently with the TACL process:
10> FUP /INV input_queue DYNAMIC PROMPT prompt_string,
OUTV output_queue, NOWAIT, STATUS termination_results/
3. Use #WAIT to make sure the previous operation has finished:
11> SINK [#WAIT prompt_string]
4. Clear the prompt variable:
12> #SET prompt_string
5. You can then send commands to FUP:
13> #APPEND input_queue purge X!
14> SINK [#WAIT prompt_string]
15> #SET prompt_string
16> #APPEND input_queue files
17> SINK [#WAIT prompt_string]
18> #SET prompt_string
6. Finally, terminate the FUP process and delete associated variables:
19> #APPEND input_queue exit
20> #POP input_queue output_queue prompt_string &
termination_results
When used for productive work, include error checking for the #WAIT operations.

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the HP TACL and is the answer not in the manual?

HP TACL Specifications

General IconGeneral
NameHP TACL
PurposeTask automation, system management, and application control
CategorySoftware
PlatformHP NonStop
TypeScripting language
DeveloperHewlett-Packard

Summary

Section 1 An Overview of TACL

Running the Examples in This Manual

Instructions for executing manual examples, including setting required variables.

About This Manual

Section 2 Developing TACL Programs

Processing Character Data

Covers tasks like constructing text strings, analyzing output, and manipulating characters.

Debugging TACL Programs

Introduces the TACL debugger for step-by-step execution and variable examination.

Section 3 Developing TACL Routines

Processing Arguments

Details how routines handle arguments using #ARGUMENT, including options and alternatives.

Writing an Exception Handler

Explains handling events like BREAK keys or TACL errors using exception handlers.

4 Accessing Files

#REQUESTER Operation

Describes the #REQUESTER function for opening files and initiating I/O operations.

Requesting Waited Reads

Explains opening files for waited read operations using #REQUESTER.

5 Initiating and Communicating With Processes

Initiating a Process: RUN and #NEWPROCESS

Covers starting processes using RUN and #NEWPROCESS, including startup options.

6 Running TACL as a Server

Running a TACL Process as a Server

Explains making a TACL process a server by establishing its IN file as $RECEIVE.

Running TACL Code as a Server

Details providing TACL code for a TACL-server process using #INPUTV and #REPLYV.

Using TACL as a Pathway Server

Describes creating a Pathway environment with TCP and TACL servers to process requests.

7 Using Programmatic Interfaces

8 Example of a System Management Program

Related product manuals