[GRASS-user] Redirecting output from Grass commands in bash script

Soeren Gebbert soerengebbert at gmx.de
Fri May 12 16:42:08 EDT 2006


Hi,
if you are using the bash try this:

r.mapcalc 'map=sin(row())' > /dev/null 2>&1

Soeren

Jeroen Wortel schrieb:

> Hi All,
>
> I want to surpress the output of some Grass commands when using a 
> script, by redirecting it to /dev/null.
> I use:
>
> null=/dev/null
> r.mapcalc 'map=etcetc' >> $null
>
> Some of the output gets redirected, but some still appears on screen. 
> How can I redirect the other output as well?
>
> ADThanksVANCE,
>
> -Jeroen.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>grassuser mailing list
>grassuser at grass.itc.it
>http://grass.itc.it/mailman/listinfo/grassuser
>  
>




More information about the grass-user mailing list