10 Oct
2007
10 Oct
'07
10:07 a.m.
Jenny Hopkins wrote:
mount -a > /dev/null
I hoped the output would be directed to a black hole, but it sends a mail every hour as below.
mount is (correctly) sending errors to stderr (which you're not redirecting). This can be quite a good thing; programs which generate "helpful" comments that you want to lose can be redirected without losing any unexpected errors. See http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html for some useful hints but mount -a &> /dev/null .. will send all output to /dev/null (the above link shows how to handle the different streams separately if needed). -- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0845 45 89 555 Registered in England (0456 0902) at 13 Clarke Rd, Milton Keynes, MK1 1LG