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

Benjamin Ducke benjamin.ducke at ufg.uni-kiel.de
Sun Dec 17 11:58:36 EST 2006


Yes, G_getenv/G_setenv seems to be the best solution.
Thanks a lot for the hint!

Benjamin

Florian Kindl wrote:
> 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.
> 
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
> 
> 

-- 
Benjamin Ducke, M.A.
Archäoinformatik
(Archaeoinformation Science)
Institut für Ur- und Frühgeschichte
(Inst. of Prehistoric and Historic Archaeology)
Christian-Albrechts-Universität zu Kiel
Johanna-Mestorf-Straße 2-6
D 24098 Kiel
Germany

Tel.: ++49 (0)431 880-3378 / -3379
Fax : ++49 (0)431 880-7300
www.uni-kiel.de/ufg




More information about the grass-dev mailing list