How can I read the standard output of an already-running process?