This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: system() fails on pristine Windows systems
Archie Warnock wrote:
[snip]
> So, what would be the right way to call an external program from a
> Cygwin program without installing Cygwin, if not system()?
I don't know if it works but I would try to use popen(), there's also exec() and
all it's relatives.
> I also find it somewhat puzzling that it works on my development
> machines even though /bin/sh isn't anywhere along in the path of the
> Windows command shell.
Registry perhaps, the cygwin1.dll has to set a sane environment for itself, it
probably gets the location of the Cygwin installation plus the mount table and
some environment variables.
--
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/