Pipe output to screen and log file in UNIX

# pkgadd curl 2>&1 | tee -a install.log

-a is append, so all output is appended to install.log in this instance.

Leave a Comment

Your email address will not be published. Required fields are marked *