[GRASSLIST:9290] Re: CygWin and system() calls
benducke at compuserve.de
benducke at compuserve.de
Sun Dec 4 10:35:56 EST 2005
OK, forget about this one. It was something
to do with the fact that I was piping
console output to /dev/null which does not
seem to exist on Cygwin ...
----- Originalnachricht -----
Von: benducke at compuserve.de
Datum: Sonntag, 4. Dezember 2005 1:18 pm
Betreff: [GRASSLIST:9288] CygWin and system() calls
> Hi everyone,
>
> I have been working on my GRASS 6 extension manager stuff lately and
> tried to run it in a CygWin environment to see what would happen ;)
>
> There seems to be one major problem: my program makes heavy use
> of system() to start shell commands, wait until they are executed
> and resume operation. HOWEVER, it seems that on CygWin, system()
> does not wait properly until the command has been executed.
> This results in shell commands being fired off without synchronisation
> and a total mess.
> Does anyone no about this problem? What C functions do I need to use
> if I want to start a shell command and wait for it to finish in
> CygWin?
> Thanks,
>
> Benjamin
>
>
More information about the grass-user
mailing list