Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

logging the terminal output to a file

stdbuf -o 0 myprogram [myarguments...] 2>&1 | tee outfile #stdbuf prevents buffering
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #logging #terminal #output #file
ADD COMMENT
Topic
Name
5+6 =