Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-Id: <4.3.1.2.20011105153534.01675150@pop.ma.ultranet.com>
X-Sender: lhall@pop.ma.ultranet.com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Mon, 05 Nov 2001 15:36:18 -0500
To: m.buchmeier@fz-juelich.de, Kevin Schnitzius <kevin.schnitzius@citrix.com>
From: "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
Subject: RE: system() function doesnt work outside cygwin
Cc: "'m.buchmeier@fz-juelich.de'" <m.buchmeier@fz-juelich.de>,
   cygwin@sources.redhat.com
In-Reply-To: <Pine.LNX.4.21.0111052024160.6611-100000@IFF572.IFF.KFA-JUE
 LICH.DE>
References: <FFC7351A4632D411820000508B2E1C2C01CB1669@hqexch01.citrix.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

At 02:27 PM 11/5/2001, mbuch@IFF572.IFF.KFA-JUELICH.DE wrote:
>On Mon, 5 Nov 2001, Kevin Schnitzius wrote:
>
> > Date: Mon, 05 Nov 2001 14:12:55 -0500
> > From: Kevin Schnitzius <kevin.schnitzius@citrix.com>
> > To: "'m.buchmeier@fz-juelich.de'" <m.buchmeier@fz-juelich.de>,
> >      cygwin@sources.redhat.com
> > 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                              lhall@rfk.com
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/

