1

I have a long running process that outputs status messages, errors and warnings to console. I want to log this output to a file and also see it on the console.

Using foo_command | tee foolog.txt does the job but foolog.txt remains empty till foo_command has completed.

What I want is live output to foolog.txt so that anyone can tail foolog.txt to monitor the status. How do I achieve this?

Dojo
  • 5,374
  • 4
  • 49
  • 79

0 Answers0