4

Possible Duplicate:
How can a process intercept stdout and stderr of another process on Linux?

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

Thanks,

Community
  • 1
  • 1
wei
  • 6,629
  • 7
  • 40
  • 52

1 Answers1

0

Analyzing ...

Possibility 1: you want to capture output that was redirected. You're out of luck.
Possibility 2: you want to capture output that will be redirected. Debug inject and call dup2.
Possibility 3: you are the process. Maybe try /dev/tty

.

Joshua
  • 40,822
  • 8
  • 72
  • 132