On 10/10/2007, Jenny Hopkins hopkins.jenny@gmail.com wrote:
On 10/10/2007, Chris Glover chris@glovercc.plus.com wrote:
mount -a 2>&1 > /dev/null
The 2>&1 forces STDERR to goto STDOUT, which you caqn then send to /dev/null.
I had tried this originally (with the 2>&1 on the other side), and errors stopped for a few days but then restarted. I then tried the leaner version which I posted. I have to be vague here, as the mails go to a client and it's hard working out what, why and when from him :-)
I start to see (I think): The script in cron.hourly now reads mount -a > chmnt.txt 2> chmnt.txt
but I still get the mail below. Is it because the report is actually coming from cron daemon rather than the checkmounts script?
Cron Daemon to root@localhost.localdomain date 10 Oct 2007 11:17 subject Cron root@dellbox run-parts --report /etc/cron.hourly
run-parts: /etc/cron.hourly/checkmounts exited with return code 32
Many thanks,
Jenny