Re: retrieving data from another process



Michael Lausch wrote:
>f = popen("cmd 2>&1", "r");
>redirects stdin and stdout.
(I guess you mean stdout and stderr.)
True, but what if you want to do different things with normal output
(e.g. process it) and error messages (e.g. log them)?  Now *everything*
comes out of f.  I don't know what Mr. Greenwald is trying to do,
though.  This might be enough for him.
-Daniel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]