2

How I can accomplish STDOUT to be to logged in a file (appending), but preserving the flow (leave STDOUT to STDOUT) ?

STDOUT should work transparently, but should be logged also into a file, without messing with "tee" on each command input. Same for STDERR.

Simply, mirror output to file.

1 Answers1

1

What about using the 'script' command...

script -a
(run your commands)
exit

This will create a file called typescript that records all commands that you input and their respective output.

jftuga
  • 5,831