Thanks all,
I'll check the subprocess module. Sounds interesting and a lot more
complete then os.system. I'll just have to study a bit more... Those
are the problems of being a self thought hacker with no formal
programing education :)
Cheers
Daniel
On Dec 4, 2007 7:40 AM, Hamish [EMAIL
Hi all,
This might be more of a python problem but here it goes...
I wrote a water balance script in python to run under GRASS. What I
would like now is that the commands in the python script would be
silent, that is, no return from stdout or stderr.
For instance every time I call a r.mapcalc
Take a look to PyWPS code. It deals with this kind of problems using
subprocess module [1].
In particular, go to the def GCmd inside this file [2]
Here is a sample command that calls it :
self.GCmd(r.mapcalc output=input+%f 2 [3]
Hope it helps,
Giovanni
[1]