Takes stdin and tees it into stdout and an output file determined at runtime