16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Description<br />

Options<br />

Examples<br />

Localization<br />

Exit Values<br />

Portability<br />

Related Information<br />

cat<br />

tee clones an output stream. It copies the standard input to each output file as well<br />

as to the standard output.<br />

–a Appends to (rather than overwrites) each output file.<br />

–i Ignores interrupt signals, making it suitable for use as a background<br />

process.<br />

The following command runs the program prog and pipes the program’s standard<br />

output into tee:<br />

prog | tee file<br />

test — Test for a condition<br />

Format<br />

As a result, tee writes the output to both the standard output and the specified file.<br />

tee uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

1 Failure due to any of the following:<br />

v Out of memory when allocating I/O buffers<br />

v I/O error reading or writing to a file<br />

v Error creating an output file<br />

v Error opening an output file for appending<br />

2 Failure due to incorrect command-line option<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide, <strong>UNIX</strong> systems.<br />

test expression<br />

[ expression ]<br />

tee<br />

Chapter 2. Shell command descriptions 693

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

Saved successfully!

Ooh no, something went wrong!