[GRASS5] Add-on initialization on GRASS startup

If I am creating an add-on for GRASS and the add-on needs some kind of
initialization (i.e., to set some environment variables) is there a
standard way to do this on GRASS startup? I mean is there a facility in
GRASS similar to /etc/profile.d/ for UNIX shells where you can put
initialization scripts and they will run automatically on shell startup?

--
Alex Sorokine, Ph.D. <sorokina@ornl.gov>
Oak Ridge National Lab

Sorokine, Alexandre wrote:

If I am creating an add-on for GRASS and the add-on needs some kind of
initialization (i.e., to set some environment variables) is there a
standard way to do this on GRASS startup? I mean is there a facility in
GRASS similar to /etc/profile.d/ for UNIX shells where you can put
initialization scripts and they will run automatically on shell startup?

The startup script will run ~/.grass.bashrc (for bash) or
~/.grass.cshrc (for csh/tcsh) if it exists.

Alternatively, it wouldn't be hard to modify the startup script itself
($GISBASE/etc/Init.sh).

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

You should contact Benjamin Ducke http://www.uni-kiel.de/ufg/ufg_BerDucke.htm about doing this as a GRASS addon extension.

Michael


Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton


From: “Sorokine, Alexandre” sorokina@ornl.gov
Date: Wed, 19 Oct 2005 13:07:40 -0400
To: grass5@grass.itc.it
Conversation: Add-on initialization on GRASS startup
Subject: [GRASS5] Add-on initialization on GRASS startup

If I am creating an add-on for GRASS and the add-on needs some kind of initialization (i.e., to set some environment variables) is there a standard way to do this on GRASS startup? I mean is there a facility in GRASS similar to /etc/profile.d/ for UNIX shells where you can put initialization scripts and they will run automatically on shell startup?


Alex Sorokine, Ph.D. sorokina@ornl.gov
Oak Ridge National Lab