Use UNIX tee Command to Store stdout to Local Server and zOS

Use UNIX tee Command to Store stdout to Local Server and z/OS

This example demonstrates using the UNIX tee command to save the standard out of a command to a file on the remote system, as well as send it back to the UCMD Manager in real time.

The UNIX ls command is executed in this example. The ls command writes the file listing to its standard out, which is piped to the tee command. The tee command reads the ls listing and writes it to both the file teeout.txt and to standard out, which is redirected to the UCMD Manager on z/OS. The UCMD Manager writes the standard out to ddname UNVOUT.


SYSIN Options

Option

Description

-script

ddname from which to read a script file. The script file is sent to the remote system by UCMD Manager for execution

-host

Host name or IP address of the remote system on which to execute the script.

-userid

Remote user ID with which to execute the command.

-pwd

Password for the user ID.

Components

Universal Command Manager for z/OS