[GRASS-dev] trying to set environment vars from a C program (addendum)

Florian Kindl florian.kindl at uibk.ac.at
Sun Dec 17 11:17:52 EST 2006


On Dec 17 [16:39], Benjamin Ducke wrote:
> I would like to use shell environment variables for this and
> set them through a C module.

Just seen: there is a G_system(), besides system()

> Is this somehow possible or will I have to fall back to storing
> variables and values in an ASCII file?
> 

afaik, G_setenv() writes to your .grassrc

\Flo.




More information about the grass-dev mailing list