I have a python program that outputs to stdout
and a log file.
However, the person I am making this for wants to know if I can set it up so that he can see the output of the file, while it is running on a different terminal or in the background. For example the program launched at startup, and he wants to ssh
into it and see the output it is running.
So is there a way to see the output of a process that is currently running?
Preferably in bash or python, if possible.
tail -f file.log
? – fredtantini Jun 29 '15 at 13:56tail
to watch a certain file, but I also usewatch
if I know there are multiple files in that folder that I want to keep an eye on. – Kevdog777 Jun 29 '15 at 14:05