This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: system() function doesnt work outside cygwin


Can you hand the output of "cygcheck -s -v" and also your 
windows path ("echo %PATH%" in a cmd window) ?

mbuch@IFF572.IFF.KFA-JUELICH.DE wrote:
> 
> 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 ?

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]