The tee command clones an output stream. It copies the standard input to each output file as well as to the standard output.
appends to (rather than overwrites) each output file.
ignores interrupt signals, making it suitable for use as a background process. Since Windows systems do not support signals, this option does nothing on those systems.
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.
Possible exit status values are:
Failure due to any of the following:
Failure due to invalid command line option.
POSIX.2. x/OPEN Portability Guide 4.0. All UNIX systems. Windows 7. Windows Server 2008 R2. Windows 8. Windows Server 2012. Windows 10. Windows Server 2016.
PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.1 patch 1 Documentation Build 2.