[GRASS-user] Second try, run grass scripts as batch, process in Windows

Message: 8 Date: Thu, 25 Sep 2008 15:22:03 +0100 From: Glynn Clements <glynn@gclements.plus.com> Subject: Re: [GRASS-user] Second try, run grass scripts as batch process in Windows To: Moritz Lennert <mlennert@club.worldonline.be> Cc: grass-user@lists.osgeo.org Message-ID: <18651.40587.532606.8644@cerise.gclements.plus.com> Content-Type: text/plain; charset=us-ascii [...]
I've started re-writing the scripts in 7.0 in Python. For now, I've
left the Bourne-shell versions in place so that people can compare the
two versions for testing purposes.

That's great! Is there already some Python version available?
Regards,
Luigi

Luigi Ponti wrote:

> I've started re-writing the scripts in 7.0 in Python. For now, I've
> left the Bourne-shell versions in place so that people can compare the
> two versions for testing purposes.

That's great! Is there already some Python version available?

So far, I've replaced 16 of the 62 shell scripts in the scripts
directory. The scripts themselves currently only exist in 7.0,
although the utility module (lib/python/grass.py) is also in 6.4. In
most cases, there's no particular reason why the scripts can't be used
with older versions of GRASS.

I also count another 67 shell scripts outside of the scripts
directory. Some of those are actually Tcl/Tk scripts, some are only
used during compilation, some are test scripts, etc, but some of them
will need to be converted in order to be able to run WinGRASS without
MSys. AFAICT, there are around 25-30 such scripts.

Compilation will continue to require a Bourne shell, as that's what
make uses.

--
Glynn Clements <glynn@gclements.plus.com>

Glynn Clements wrote:

Luigi Ponti wrote:

  
I've started re-writing the scripts in 7.0 in Python. For now, I've
left the Bourne-shell versions in place so that people can compare the
two versions for testing purposes. 
      
That's great! Is there already some Python version available?
    

So far, I've replaced 16 of the 62 shell scripts in the scripts
directory. The scripts themselves currently only exist in 7.0,
although the utility module (lib/python/grass.py) is also in 6.4. In
most cases, there's no particular reason why the scripts can't be used
with older versions of GRASS.
  

Thanks Glynn: I found the scripts. As I go through Lie Hetland’s Python book, it is very useful to have a working GRASS implementation.
Regards,
Luigi

I also count another 67 shell scripts outside of the scripts
directory. Some of those are actually Tcl/Tk scripts, some are only
used during compilation, some are test scripts, etc, but some of them
will need to be converted in order to be able to run WinGRASS without
MSys. AFAICT, there are around 25-30 such scripts.

Compilation will continue to require a Bourne shell, as that's what
make uses.