Subject: RE: system() function doesnt work outside cygwin
From: "Larry Hall (RFK Partners, Inc)" <[email-masked]>
To: [email-masked], Kevin Schnitzius <[email-masked]>
Cc: "[email-masked]'" <[email-masked]>, [email-masked]
Date: Mon, 05 Nov 2001 15:36:18 -0500

At 02:27 PM 11/5/2001, [email-masked] wrote:
>On Mon, 5 Nov 2001, Kevin Schnitzius wrote:
>
> > Date: Mon, 05 Nov 2001 14:12:55 -0500
> > From: Kevin Schnitzius <[email-masked]>
> > To: "[email-masked]'" <[email-masked]>,
> >      [email-masked]
> > Subject: RE: system() function doesnt work outside cygwin
> > 
> > Try this program:
> > 
> > main()
> > {
> > system("cmd /c echo %path%");
> > }
> > 
>
>It does the same:
>No output, not even an error-message when called from command-window
>or explorer and the expected output when called form inside cywin
>(bash) 

Ah, your path is different in bash than it is in Windows...

Larry Hall                              [email-masked]
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX

--
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/