[GRASS-user] Editing a bash script

Markus Neteler neteler at osgeo.org
Thu Mar 17 16:51:48 EDT 2011


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:
http://grass.osgeo.org/grass64/manuals/html64_user/g.ask.html

Hope this helps
Markus


More information about the grass-user mailing list