I am currently testing some programs for my project, I have this program currently running as a daemon I would just like to capture the standard output of this program and maybe the stderr ...
I know strace would have been best as a debugging tool but I guess it does not streamline to my want ..
i see answers on stackoverflow like the subprocess.popen(['ps'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) ... but this start the process .. I just want to hook to a running process and grap output...
any answer or ideas would be appreciated .. if in python, bash or c
TmuxandScreen.