Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: Sam Steingold Subject: Re: subprocess i/o interaction with shell (bash&cmd): shells compete for input with user program! Date: 22 Jul 2003 16:41:18 -0400 Organization: disorganization Lines: 29 Message-ID: References: <20030722145702 DOT GA17342 AT redhat DOT com> <20030722172316 DOT GC17916 AT redhat DOT com> Reply-To: sds AT gnu DOT org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet AT main DOT gmane DOT org X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 > * In message <20030722172316 DOT GC17916 AT redhat DOT com> > * On the subject of "Re: subprocess i/o interaction with shell (bash&cmd): shells compete for input with user program!" > * Sent on Tue, 22 Jul 2003 13:23:16 -0400 > * Honorable Christopher Faylor writes: > > On Tue, Jul 22, 2003 at 12:23:18PM -0400, Sam Steingold wrote: > >> Under cygwin you'd accomplish this by having the parent process use > >> one of the "exec" calls. > > > >nope. doesn't work either. > >I get the same "input competition" when I use exec(). > > If you are using fork/exec, then sure, you'll get that. I am not using fork(). just plain exec(). > If you use just exec, then cygwin should do the right thing. it does not. I use the simple execl("runtime.exe",NULL); and I get the "input competition". -- Sam Steingold (http://www.podval.org/~sds) running w2k Lisp is a language for doing what you've been told is impossible. - Kent Pitman -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/