[GRASSLIST:871] RE: how to suppress shell output ???

"Fernández-Victorio Arévalo, Gonzalo" GFernandez-Victorio at IGAE.minhac.es
Thu Jul 31 08:01:03 EDT 2003


> -----Mensaje original-----
> De: Massimiliano Cannata [mailto:massimiliano.cannata at ist.supsi.ch]
> Enviado el: jueves, 31 de julio de 2003 12:26
> CC: GRASSLIST at Baylor.edu
> Asunto: [GRASSLIST:869] how to suppress shell output ???
> 
> 
> How can I suppress shell std output using G_system()?
> maybe ...
> G_system("r.mapcalc >> temp.txt")
> .... but it doesn't seems to me to be enough just redirect it.
> Suggestions?

">>" concatenates the output. Try "2>&1" instead. I usually redirect to tee,
but I guess the syntax should be the same.

Regards

Gonzalo




More information about the grass-user mailing list