How to capture the stdout of a running process that has already redirected it to / dev / null

Possible duplicate:
How is the process of intercepting stdout and stderr of another process in Linux?

The process is already running and has all 0, 1, 2 redirected to / dev / null, how can I restore stdout?

Thanks,

+4
source share
1 answer

Analysis...

Option 1: you want to capture the output that has been redirected. You were unlucky.
Opportunity 2: you want to capture the output to be redirected. Injection debugging and calling dup2.
Opportunity 3: you are a process. Maybe try / dev / tty

.

0
source

All Articles