On Wed, Oct 10, 2007 at 09:47:34AM +0100, Jenny Hopkins wrote:
Hullo there,
I'm trying to prevent a very simple script in cron.hourly from sending mail when it executes.
The script consists of
mount -a > /dev/null
I hoped the output would be directed to a black hole, but it sends a mail every hour as below.
Try:
mount -a > /dev/null 2> /dev/null
The > redirects standard output, the 2> redirects standard error, which is probably where your errors are going to.
J.