This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: system() fails on pristine Windows systems


Archie Warnock wrote:
[snip]
> It seems obvious to me that system() is not finding a command
> interpreter on the machine,

Exactly!

> although they are correctly listed in the
> path for the command window.  Am I missing something really stupid that
> needs to be included in the distribution or set in the program, or does
> system() just not work the way I expect?

Yes, you are missing something really simple... have you seen the man page for
system()?  Of course not, "Use  `system'  to pass a command string `*S' to
`/bin/sh'..."

-- 
René Berber


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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]