Brilliant. Thanks Martin!<br><br><br><div class="gmail_quote">On Nov 20, 2007 2:40 PM, Martin Landa <<a href="mailto:landa.martin@gmail.com">landa.martin@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>2007/11/20, Andre Hauptfleisch <<a href="mailto:ahaupt@gmail.com">ahaupt@gmail.com</a>>:<br><div class="Ih2E3d">> Another newby question.<br>><br>> I see that one can run any scripts from within GRASS, but is it possible to
<br>> start the application from a script, pipe some commands and close the<br>> application again?<br>><br>> Something such as:<br>><br>> #!/bin/bash<br>><br>> # ... some code ... #<br>><br>> ./grass63 -text |
v.do something; r.do something; exit<br>><br>> # ... or maybe a better way ...#<br>><br>> ./grass63 -text | ./some_grass_script.sh; exit<br>><br>> # ... some code ... #<br>><br>><br>><br>><br>
> At the moment when I do a "./grass63 -text" command, I need to verify the<br>> DATABASE and LOCATION info and then hit (ESC)(ENTER) sequence.<br><br></div><a href="http://grass.gdf-hannover.de/wiki/GRASS_and_Shell#GRASS_Batch_jobs" target="_blank">
http://grass.gdf-hannover.de/wiki/GRASS_and_Shell#GRASS_Batch_jobs</a><br><br>Martin<br><br>><br>> --<br><div class="Ih2E3d">> Groete,<br>> Andre Hauptfleisch<br>><br>> M: 082 5722 469<br>> F: 086 687 1106
<br>> E: <a href="mailto:ahaupt@gmail.com">ahaupt@gmail.com</a><br></div>> _______________________________________________<br>> grass-user mailing list<br>> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org
</a><br>> <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>><br>><br><font color="#888888"><br><br>--<br>Martin Landa <<a href="mailto:landa.martin@gmail.com">
landa.martin@gmail.com</a>> * <a href="http://gama.fsv.cvut.cz/%7Elanda" target="_blank">http://gama.fsv.cvut.cz/~landa</a> *<br></font></blockquote></div><br><br clear="all"><br>-- <br>Groete,<br>Andre Hauptfleisch<br>
<br>M: 082 5722 469<br>F: 086 687 1106<br>E: <a href="mailto:ahaupt@gmail.com">ahaupt@gmail.com</a>