term1% myscript.pl | tee /tmp/logfile