delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/05/14:13:31

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <FFC7351A4632D411820000508B2E1C2C01CB1669@hqexch01.citrix.com>
From: Kevin Schnitzius <kevin DOT schnitzius AT citrix DOT com>
To: "'m DOT buchmeier AT fz-juelich DOT de'" <m DOT buchmeier AT fz-juelich DOT de>,
cygwin AT sources DOT redhat DOT com
Subject: RE: system() function doesnt work outside cygwin
Date: Mon, 5 Nov 2001 14:12:55 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

Try this program:

main()
{
system("cmd /c echo %path%");
}

Kevin

 -----Original Message-----
From: 	mbuch AT IFF572 DOT IFF DOT KFA-JUELICH DOT DE
[mailto:mbuch AT IFF572 DOT IFF DOT KFA-JUELICH DOT DE] 
Sent:	Monday, November 05, 2001 14:07
To:	cygwin AT sources DOT redhat DOT 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 DOT buchmeier AT fz-juelich DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019