[GRASS-user] Run a GRASS module from a custom module (C language)

Glynn Clements glynn at gclements.plus.com
Tue Feb 26 02:22:45 PST 2013


José María Michia Roberts wrote:

> I'm still learning! I have found that a simple call to function
> "system()"  is enough. But I was curious to learn how to use "fork /
> exec", and was a bit difficult for me.

Note that system() is rather error-prone if you need to be able to
pass variable parameters to the command, as you need to quote or
escape characters which are significant to the shell (of which there
are many).

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list