delorie.com/archives/browse.cgi | search |
Date: | Wed, 13 Aug 1997 13:46:18 +0300 (IDT) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
To: | "Markus F.X.J. Oberhumer" <k3040e4 AT wildsau DOT idv-edu DOT uni-linz DOT ac DOT at> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: stderr + popen() |
In-Reply-To: | <5sqc3l$1kcm$1@alijku04.edvz.uni-linz.ac.at> |
Message-ID: | <Pine.SUN.3.91.970813134555.4132K-100000@is> |
MIME-Version: | 1.0 |
On 12 Aug 1997, Markus F.X.J. Oberhumer wrote: > Redirecting stderr to stdout (via `dup2') and then calling > popen() doesn't give the expected results, because stdout > is dup2'ed again inside popen. > > Can someone give a workaround for this problem ? AFAIK, `popen' is not a good idea when you need to redirect `stderr' as well as `stdout'. I suggest you to redirect `stdout' and `stderr' yourself, then call `system'.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |