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
From: mbuch@IFF572.IFF.KFA-JUELICH.DE
Date: Mon, 5 Nov 2001 20:27:37 +0100 (CET)
Reply-To: m.buchmeier@fz-juelich.de
To: Kevin Schnitzius <kevin.schnitzius@citrix.com>
cc: "'m.buchmeier@fz-juelich.de'" <m.buchmeier@fz-juelich.de>,
   cygwin@sources.redhat.com
Subject: RE: system() function doesnt work outside cygwin
In-Reply-To: <FFC7351A4632D411820000508B2E1C2C01CB1669@hqexch01.citrix.com>
Message-ID: <Pine.LNX.4.21.0111052024160.6611-100000@IFF572.IFF.KFA-JUELICH.DE>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

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) 

> Kevin
> 
>  -----Original Message-----
> From: 	mbuch@IFF572.IFF.KFA-JUELICH.DE
> [mailto:mbuch@IFF572.IFF.KFA-JUELICH.DE] 
> Sent:	Monday, November 05, 2001 14:07
> To:	cygwin@sources.redhat.com
> Subject:	system() function doesnt work outside cygwin
> 
> My application (build with unix layer, recent cygwin
> distro, win2K) cant call other programs using the system() 
> fucntion when started from outside the cygwin enviroment.
> I have tryed out both posix and unix complete path
> without success.
> Here is a simple code that reproduces the problem:
> 
> main()
> {
> system("notepad");
> }
> 
> It works fine when invoked from within cygwin
> but when called fron windows nothing happens.
> 
> Anyone knows what i am doing wrong ?
> Thanks in advance for your help
> 
> 		Matthias
> 
> 
> ###############################################
> #         mail:  Matthias Buchmeier           #
> #                IFF-IEE                      #
> #                Forschungszentrum Juelich    #
> #                52425 Juelich                #
> #                Germany                      #
> #                                             #
> #           tel: +49 (0)2461 61 4273          #
> #           fax:                4443          #
> #         email: m.buchmeier@fz-juelich.de    #
> ###############################################
> 
> 
> --
> 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/
> 
> --
> 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/
> 
> 

###############################################
#         mail:  Matthias Buchmeier           #
#                IFF-IEE                      #
#                Forschungszentrum Juelich    #
#                52425 Juelich                #
#                Germany                      #
#                                             #
#           tel: +49 (0)2461 61 4273          #
#           fax:                4443          #
#         email: m.buchmeier@fz-juelich.de    #
###############################################


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

