delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/10/01/08:09:41

From: earnie_boyd AT yahoo DOT com (Earnie Boyd)
Subject: Re: opening stdin, stdout & stderr as pipes
1 Oct 1998 08:09:41 -0700 :
Message-ID: <19980930163128.28132.qmail.cygnus.gnu-win32@findmail.com>
References: <19980929210530 DOT 22483 DOT qmail AT findmail DOT com>
To: gnu-win32 AT cygnus DOT com
Cc: simon AT ptgi DOT com

Do you have the tty mode set in the CYGWIN32 environment variable?

>I'm trying to read output from a pipe, but since I also need to be able to read stderr separately, I can't use popen().  Instead, I have fork()'d and execl()'d after closing the 3 standard files and dup'ing pipes to them.
> 
> This works fine under UNIX (I've tried 5 different ones), but the output from the commands I'm exec'ing is disappearing.  Even if I leave stdout alone and swap stdin, I *still* lose stdout!  Does anyone know what's going on?
> 
> I've searched the archives here, but haven't found anything except an example of a piped command using Windows' _pipe() and _spawnlp() functions (posted on 6/11/98).  I'd rather use the sequence that works under UNIX, but I'll try anything.
> 
> Thanks,
> Simon Weatherill
> 
> -----
> Free e-mail group hosting at http://www.eGroups.com/
> -
> For help on using this list (especially unsubscribing), send a message to
> "gnu-win32-request AT cygnus DOT com" with one line of text: "help".
> 
> 



-----
See the original message at http://www.egroups.com/list/gnu-win32/?start=7729
--
Free e-mail group hosting at http://www.eGroups.com/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019