emacs-devel
[Top][All Lists]
Advanced

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

Re: Redirecting standard output


From: Eli Zaretskii
Subject: Re: Redirecting standard output
Date: Thu, 21 Apr 2011 15:15:20 -0400

> Cc: Lars Magne Ingebrigtsen <address@hidden>,
>  "address@hidden" <address@hidden>
> From: Jan Djärv <address@hidden>
> Date: Thu, 21 Apr 2011 19:05:39 +0200
> 
> > On Posix systems, we use a pipe to read from subprocess's STDOUT.  You
> > cannot do the same with STDERR, but you can redirect STDERR to a
> > temporary file, and then read it when the subprocess exits.
> 
> That is news to me. I've redirected STDERR to a pipe many times in other 
> programs. Why can't it be done in Emacs?

Maybe I'm missing something, but the call to `pipe' produces only 2
file descriptors on each end.  So you can have either stdout or stderr
of the subprocess, or both of them together, but not both of them
separately.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]