[GRASS-dev] python scripts and standard input

Massimo Di Stefano massimodisasha at gmail.com
Wed Apr 28 05:00:39 EDT 2010

Hi All,

i'm tring to use grass modules that needs a "standard input" method,

like "m.proj"

here an example where i'musing a "file" as input :

coords = read_command('m.proj', input=coordsfile, flags='i') 

how to use standard input, like in bash :

echo '599537.80 4920995.38' | m.proj -o

there is a python way to do it, or i need to use "system call" like os.system or subprocess ?



More information about the grass-dev mailing list