[GRASS-dev] Re: [GRASS-user] Calling GRASS scripts from GRASS C modules

Martin Landa landa.martin at gmail.com
Wed Mar 23 08:06:32 EDT 2011


Hi,

2011/3/23 Glynn Clements <glynn at gclements.plus.com>:
> If you need to communicate via a pipe, you can either use G_spawn_ex()
> and manage the pipe yourself (see lib/db/dbmi_client/start.c for an
> example), or use popen(). Don't use G_popen(); the Unix version is
> practically the same as popen() anyhow, and the Windows version is
> completely broken.

I took a liberty to put your very useful notes to API manual (r45736).
Please feel free to correct it if needed.

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa


More information about the grass-dev mailing list