[GRASS-user] shell script problem
Markus Neteler
neteler at osgeo.org
Tue Dec 30 03:51:34 EST 2008
On Thu, Dec 4, 2008 at 6:46 PM, Mario Giacomello
<mario.giacomello at googlemail.com> wrote:
> Thanks for your prompt response. I have got as far as understanding
> that I should run scripts inside GRASS.So, the answer is "yes- I have
> run the script inside GRASS".
best is to add this before the GRASS commands in the
script:
if [ -z "$GISBASE" ] ; then
echo "You must be in GRASS GIS to run this program." >&2
exit 1
fi
then you are sure...
Markus
More information about the grass-user
mailing list