<HTML>
<HEAD>
<TITLE>Re: grass-dev Digest, Vol 4, Issue 44</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>There are some 350 GRASS commands, all with arguments and some with LOTS of arguments (e.g., r.watershed, v.surf.rst). This seems like a lot of work.<BR>
<BR>
Michael<BR>
__________________________________________<BR>
Michael Barton, Professor of Anthropology<BR>
School of Human Evolution &amp; Social Change &nbsp;&nbsp;&nbsp;<BR>
Center for Social Dynamics &amp; Complexity<BR>
Arizona State University<BR>
<BR>
phone: 480-965-6213<BR>
fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a> <BR>
<BR>
<BR>
<BR>
<BR>
<B>From: </B>&lt;grass-dev-request@grass.itc.it&gt;<BR>
<B>Reply-To: </B>&lt;grass-dev@grass.itc.it&gt;<BR>
<B>Date: </B>Mon, 14 Aug 2006 06:39:40 +0200<BR>
<B>To: </B>&lt;grass-dev@grass.itc.it&gt;<BR>
<B>Subject: </B>grass-dev Digest, Vol 4, Issue 44<BR>
<BR>
<BR>
The Python interpreter is interactive, but it is not a general purpose shell. You would need to wrap external programs in an os.system or os.popen call. One attractive way of getting around this is to pre-wrap each program in a python object. For example: <BR>
<BR>
class Display:<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;def rast(self, rastername):<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>