This question already has an answer here:
doing this in bash script
./Execute_program > MyOutput
I get a log file from the output, however this causes the output not to be displayed on the terminal screen. Is there any way to do the same but at the same time the output can be displayed on the screen?