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

Florian Kindl florian.kindl at uibk.ac.at
Sun Dec 17 10:49:45 EST 2006


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

How about 
system("export VAR=value");
?
Needs some adaptation for different shells and cross-platform-use, though.

\Flo.




More information about the grass-dev mailing list