<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana,helvetica,sans-serif;font-size:10pt"><div>Thanks for the heads up Marcus, g.ask works like a charm now.<br></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br>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?<br><br>Many thanks for reading,<br>Rebecca<br><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Markus Neteler <neteler@osgeo.org><br><b><span style="font-weight: bold;">To:</span></b> Rebecca Bennett <rabennett@ymail.com><br><b><span style="font-weight: bold;">Cc:</span></b> GRASS Users <grass-users@lists.osgeo.org><br><b><span style="font-weight: bold;">Sent:</span></b> Thu, 17
March, 2011 20:51:48<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [GRASS-user] Editing a bash script<br></font><br>On Thu, Mar 17, 2011 at 6:55 PM, Rebecca Bennett <<a ymailto="mailto:rabennett@ymail.com" href="mailto:rabennett@ymail.com">rabennett@ymail.com</a>> wrote:<br>> Hello all,<br>><br>> I have been having a go at upgrading a basic bash script that I made to run<br>> a series of commands in GRASS. I would like the script to ask the user for<br>> two input files (one internal to the location i.e. an @PERMENANT and the<br>> other and external .asc) and an prefix to the output files of the process.<br>><br>> So far I have tried this bit of script to enter the GRASS raster, but it<br>> fails to prompt. All other commands (i.e. g.list rast) work fine.<br>><br>> g.list rast<br>> g.findfile type=old elem=cell_misc prompt="Enter raster name "<br>> unixfile=cur_raster<br><br>The command to
ask is g.ask, not g.findfile:<br><a href="http://grass.osgeo.org/grass64/manuals/html64_user/g.ask.html" target="_blank">http://grass.osgeo.org/grass64/manuals/html64_user/g.ask.html</a><br><br>Hope this helps<br>Markus<br></div></div>
</div><br>
</body></html>