This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: system() function doesnt work outside cygwin
- 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
- From: Kevin Schnitzius <kevin dot schnitzius at citrix dot com>
- Date: Mon, 5 Nov 2001 14:12:55 -0500
Try this program:
main()
{
system("cmd /c echo %path%");
}
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/