Is there any way to read standard output/error from any, GUI and non-GUI, already running process? I know about NSTask + NSPipe + NSFileHandle, but I want to connect to instead of run process myself.
Asked
Active
Viewed 373 times
0
Andrew Bridge
- 163
- 1
- 7
1 Answers
0
You can attach to the running process with gdb and redirect stdout and stderr to files. Check the answers to this question for details.
Community
- 1
- 1
Mattias Wadman
- 11,172
- 2
- 42
- 57