<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 &lt;neteler@osgeo.org&gt;<br><b><span style="font-weight: bold;">To:</span></b> Rebecca Bennett &lt;rabennett@ymail.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> GRASS Users &lt;grass-users@lists.osgeo.org&gt;<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 &lt;<a ymailto="mailto:rabennett@ymail.com" href="mailto:rabennett@ymail.com">rabennett@ymail.com</a>&gt; wrote:<br>&gt; Hello all,<br>&gt;<br>&gt; I have been having a go at upgrading a basic bash script that I made to run<br>&gt; a series of commands in GRASS. I would like the script to ask the user for<br>&gt; two input files (one internal to the location i.e. an @PERMENANT and the<br>&gt; other and external .asc) and an prefix to the output files of the process.<br>&gt;<br>&gt; So far I have tried this bit of script to enter the GRASS raster, but it<br>&gt; fails to prompt. All other commands (i.e. g.list rast) work fine.<br>&gt;<br>&gt; g.list rast<br>&gt; g.findfile type=old elem=cell_misc prompt="Enter raster name "<br>&gt; 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>