If i have a program, say: test.sh, sometimes it is necessary to debug by watchingscreen output and killing the program when it reaches a certain point in the output. With particularly verbose output it can be useful to have this output in a file, as well as in the terminal.
What is the best way to do this both in code and with debugging tools?
The output can be piped with the following line:
This will print to the screen and write the output from test.sh to Log.log.