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.
Is there any way to read standard output/error from any, GUI and non-GUI, already
Share
You can attach to the running process with gdb and redirect stdout and stderr to files. Check the answers to this question for details.