The bash script was using the logger to log some info while program runs but piping the output only pipped the print statements.
The command below outputs all output to the screen and to the file.
$ ./Users/np/Desktop/tutorial.sh 2>&1 | tee tutorial.log
Comments
Post a Comment