What is a good way to get back to the command prompt discarding STDOUT and STDERR

Posted by elementz on Super User See other posts from Super User or by elementz
Published on 2012-12-14T15:11:38Z Indexed on 2012/12/14 23:08 UTC
Read the original article Hit count: 111

Filed under:
|
|
|

I often launch applications from the cli via e.g. command & to immediately get back to the prompt back. The downside of this is, that I still get STDOUT and STDERR.

So I use command &> /dev/null to discard those outputs.

This can get quite a chore, when having to write this often during a day.

So my question is, is there a better (read shorter) way to discard of STDOUT and STDERR when not needed?

What could be done? write a wrapper script to launch applications? What would be an elegant way to do this?

© Super User or respective owner

Related posts about command-line

Related posts about bash