[GRASS-user] suppress output to terminal completely

Paul Kelly paul-grass at stjohnspoint.co.uk
Mon Dec 29 11:36:24 EST 2008


On Mon, 29 Dec 2008, Hufkens Koen wrote:

>
> Hi list,
>
> I'm working with r.le.patch in both scripts as well as interactively on the terminal.
>
> Since these calculations take up a lot of time I would like to move them to the background.
>
> If I use r.le.patch -mysettings & this will do just that.
>
> However, the module still spews stuff to my terminal. This is very annoying as I login remotely so I can't fall back on the GUI menus.
>
> Can I disable my terminal output completely?
>
> dumping stout to /dev/null does not seem to work...

GRASS modules send informative messages to stderr, not stdout - so adding
2>/dev/null
(Bash shell syntax) should work. But have you tried r.le.patch --quiet 
first of all? I'm not sure if r.le.patch respects the --quiet setting, but 
redirecting stderr to /dev/null definitely will work.

Paul



More information about the grass-user mailing list