28.11.2012 Views

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PIPE UNIX<br />

PIPE UNIX<br />

Syntax<br />

UNIX:<br />

UNIX<br />

(ECHO) unix_command<br />

Command Description<br />

The PIPE UNIX stage transfers a command to a <strong>NetView</strong> UNIX server where the<br />

command is executed and the results returned. Specify CORRWAIT to follow<br />

UNIX to enable the return of command responses.<br />

Streams<br />

Commands can be passed on the stage or on the input stream.<br />

Stream Type Number Supported<br />

Input 1<br />

Output 3<br />

Termination Conditions<br />

UNIX terminates when the input stream and the primary output stream are<br />

disconnected. If UNIX is followed by CORRWAIT, CORRWAIT automatically ends<br />

when the UNIX command completes and the response has been received.<br />

Operand Descriptions<br />

Usage Notes<br />

246 <strong>Programming</strong>: <strong>Pipes</strong><br />

ECHO<br />

Write the command to the primary output stream prior to the execution of the<br />

command.<br />

unix_command<br />

A UNIX line mode command to be invoked at the UNIX server. Unix_command<br />

is required when UNIX has no input stream and is otherwise optional.<br />

If unix_command is specified, the command is invoked once if the UNIX stage<br />

has an input stream. Otherwise, the command is invoked when an input<br />

message is passed to the UNIX stage.<br />

If unix_command is not specified, the commands to be invoked are read from<br />

the input stream.<br />

v Command authority is checked prior to and after submitting the command.<br />

Prior to submission authority is checked <strong>for</strong> the pipe stage, but no checking is<br />

done of the UNIX command. To permit only B<strong>OS</strong>S to use the UNIX stage, code<br />

the following:<br />

PROTECT *.*.DSIPIUNX<br />

PERMIT B<strong>OS</strong>S *.*.DSIPIUNX

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!