0

I would like to log everything printed to my console in real time. What I mean by this is that I need to be able to view the log file while the logger is running.

To my understanding, script output.txt cannot do this, because I cannot more the file until I exit. So what can I do?

1

The script manpage lists this option:

--flush: Flush output after each write. This is nice for telecooperation: one person does mkfifo foo; script -f foo, and another can supervise real-time what is being done using cat foo.

It sounds sufficient for what you want to achieve.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.