Re: [GRASS-user] Error using grass.Popen

2011-03-31 Thread Markus Neteler
2011/3/31 António Rocha :
> Greetings
>
> I'm using grass.Popen like this:
> externalProcess = grass.Popen(cmd, stdout=grass.PIPE, stderr=grass.PIPE,
> cwd=tempfile)           It seems that I'm getting some error while running
> this function but the only thing that is printed in my command Output window
> is:
> 
>
> How can I get the exact error that I'mgetting?


Unfortunately I don't know. But what kind of "cmd" are you running?
On
http://grass.osgeo.org/wiki/GRASS_and_Python#GRASS_Python_Scripting_Library
I read
"[To be precise, they use grass.Popen(), which just calls
subprocess.Popen() with shell=True on Windows and shell=False
otherwise. On Windows, you need to use shell=True to be able to
execute scripts (including batch files); shell=False only works with
binary executables.]"

Maybe giving you some idea?

Markus
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Error using grass.Popen

2011-03-31 Thread António Rocha

Greetings

I'm using grass.Popen like this:
externalProcess = grass.Popen(cmd, stdout=grass.PIPE, stderr=grass.PIPE, 
cwd=tempfile)   
It seems that I'm getting some error while running this function but the 
only thing that is printed in my command Output window is:



How can I get the exact error that I'mgetting?

Thanks

Best regards,
Antonio


__ Information from ESET NOD32 Antivirus, version of virus signature 
database 6003 (20110331) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user