[ALUG] Preventing ouput mail from shell script

Brett Parker iDunno at sommitrealweird.co.uk
Wed Oct 10 10:20:05 BST 2007


On Wed, Oct 10, 2007 at 09:53:17AM +0100, Chris Glover wrote:
> Try the following
> 
> mount -a 2>&1 > /dev/null
> 
> The 2>&1 forces STDERR to goto STDOUT, which you caqn then send
> to /dev/null.

Wrong ordering...

mount -a > /dev/null 2>&1

works better ;)

-- 
Brett Parker




More information about the main mailing list