MPE/iX Shell and Utilities Reference Manual, Vol 2
tee(1) MPE/iX Shell and Utilities tee(1)
NAME
tee — clone output stream
SYNOPSIS
tee [–ai][file ...]
DESCRIPTION
The tee command clones an output stream. It copies the standard input to each output file as
well as to the standard output.
Options
tee accepts the following options:
–a appends to (rather than overwrites) each output file.
–i ignores interrupt signals, making it suitable for use as a background process.
EXAMPLES
prog | tee file
This runs the program prog and pipes the program’s standard output into tee. As a result,
tee writes the output to both the standard output and the specified file.
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 Failure due to any of the following:
— invalid command line option
— out of memory when allocating I/O buffers
— I/O error reading or writing to a file
— error creating an output file
— error opening an output file for appending.
Messages
Message: creating file "filename": system error
Cause: See syserror(3).
Action: See syserror(3).
Message: insufficient memory
Cause: There were not enough free system resources for tee to allocate file descrip-
tors.
Action: Free up more system resources.
1-596 Commands and Utilities