[GRASS-user] Re: problem using grass.write_comman, db.execute

Nikos Alexandris nikos.alexandris at felis.uni-freiburg.de
Thu Mar 18 20:44:12 EDT 2010


On Wed, 2010-03-17 at 01:15 -0800, schorschli wrote:
> >'db.execute input=-' for stdin only works in grass7. for 6.4+6.5 it is
> >simpler, just omit the input option all together.
> 
> Hi,
> What do you mean with omit the input?
> Like this?
> 
> 
> grass.write_command('db.execute', stdin = sql_coi_percent)

Yes. In my script I use(d):

--%<---
grass.write_command('db.execute',\
stdin = sql_coi_percent,\
database = database,\
driver = driver)
--%<---

Nikos



More information about the grass-user mailing list