[GRASS-user] Re: Editing a bash script

Rebecca Bennett rabennett at ymail.com
Fri Mar 18 07:24:16 EDT 2011

Thanks for the heads up Marcus, g.ask works like a charm now.

Part of my script includes a choice of external. asc files, is there an 
equivalent to g.ask command the user to enter this file path/ name?

Many thanks for reading,

From: Markus Neteler <neteler at osgeo.org>
To: Rebecca Bennett <rabennett at ymail.com>
Cc: GRASS Users <grass-users at lists.osgeo.org>
Sent: Thu, 17 March, 2011 20:51:48
Subject: Re: [GRASS-user] Editing a bash script

On Thu, Mar 17, 2011 at 6:55 PM, Rebecca Bennett <rabennett at ymail.com> wrote:
> Hello all,
> I have been having a go at upgrading a basic bash script that I made to run
> a series of commands in GRASS. I would like the script to ask the user for
> two input files (one internal to the location i.e. an @PERMENANT and the
> other and external .asc) and an prefix to the output files of the process.
> So far I have tried this bit of script to enter the GRASS raster, but it
> fails to prompt. All other commands (i.e. g.list rast) work fine.
> g.list rast
> g.findfile type=old elem=cell_misc prompt="Enter raster name "
> unixfile=cur_raster

The command to ask is g.ask, not g.findfile:

Hope this helps

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20110318/96d97da1/attachment-0001.html

More information about the grass-user mailing list