doing this in bash script./Execute_program > MyOutputI 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?
How to run a program, redirect its output and display the output on the screen?
linux;shell script;terminal;io redirection;executable
Use the universal pipe fitting, tee.  tee reads input, and duplicates the output to both standard output and the specified file:./Execute_program | tee MyOutputIf you want to append to rather than overwrite the specified file, use -a:./Execute_program | tee -a MyOutputIf you want to write to several files, just add them as additional parameters:./Execute_program | tee MyOutput MyOtherSavedLog