How can I redericting output to screen and file witout adding delays?
I have an executable producing some output (stdout and stderr). I want to log it in a file and at the same display it in the terminal.
I’m using the following code:
How can I redericting output to screen and file witout addind delays?
I have an executable producing some output(stdout and stderr). I want to log it in a file and at the same display it in the terminal.
I’m using the following code:
my_executable 2>&1 | tee my_output.txt