Hello:
While the information in the /proc folder for a specific pid will allow
one to find if the output is being sent to stdout or to a file, I am
having problems with a situation where I piped the output to another
command and ran both in the background.
Take, for example
% bash my_bash_script | tee logfile &
Later on I close the terminal in which this command and pipe was
executed and I forgot to memorize what I did.
The pid for my_bash_script can be easily found by pgrep but how can I
recover the "tee logfile" part, so I can examine logfile?
Randall