I have some scripts that ought to have stopped running but hang around for ever.
Is there some way I can figure out what they're writing to stdout and stderr in a readable way ?
I tried, for example, to do
tail -f /proc/(pid)/fd/1
but that doesn't really work. It was a long shot anyway.
Any other ideas ? strace on its own is quite verbose and unreadable for seeing this.
Note: I am only interested in their output, not in anything else. I'm capable of figuring out the other things on my own; this question is only focused on getting access to stdout and stderr of the running process after starting it.