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 Date: Tue, 7 Jan 2003 04:59:22 -0800 (PST) From: Michael A Chase Subject: Re: System() command To: cygwin AT cygwin DOT com, Maor Avni Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-Disposition: INLINE References: <988BE481ACC95C429DCB909F74A3163A05D660 AT exchange-il> In-Reply-To: <988BE481ACC95C429DCB909F74A3163A05D660@exchange-il> On Tue, 7 Jan 2003 12:55:09 +0200 Maor Avni wrote: > I have this very simple C program: > > #include > > int main() > { > char a[] = "echo echo testing 123"; > system(a); > return 0; > } > > I compile it with gcc and everything works fine, until I run it under > Win2K's cmd.exe: the program just exits and does nothing. > > I have set up the PATH environment variable, and it still doesn't work. > > Any ideas? No, since I have no idea what you setup PATH to. There is a reason for http://cygwin.com/bugs.html and http://cygwin.com/faq/ being at the bottom of every message in the list. -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/