Automating additions to the $PATH

David Hoover a16dhoover at attmail.com
Mon Sep 11 08:00:00 EDT 1995



Greetings from Idaho!

One of our offices wants to have some way to automatically add a
$LOCATION/scripts directory to their $PATH so they can execute
scripts they have written that are unique to that MAPSET dealing
with data display, data manipulation, and analysis.

I tried adding commands like:
     PATH=$PATH:$LOCATION/scripts
      export PATH
to the grass4.1 start-up script in the $HOME directory or adding
the script to a set.pathname script in the $GISBASE/scripts
directory, but to no avail.

This would help save time for the user so they would not have to
cd to the scripts directory every time they want to run one of their
scripts.

Any help would be appreciated in automating this path setting procedure.

Thanks in advance -

David Hoover
State GIS Coordinator
USDA-NRCS
a16dhoover at attmail.com
208 334 1525






More information about the grass-user mailing list