Quick reference for linux on how to output the stdout/stderr to the term window and to a file at the same time:
programname [args] 2>&1 | tee outfile
and to append use this:
programname [args] 2>&1 | tee -a outfile
Hey, thanks SO: https://stackoverflow.com/questions/418896/how-to-redirect-output-to-a-file-and-stdout