[ALUG] Preventing ouput mail from shell script

Brett Parker iDunno at sommitrealweird.co.uk
Wed Oct 10 12:07:45 BST 2007


On Wed, Oct 10, 2007 at 11:41:06AM +0100, Jenny Hopkins wrote:
> 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 at localhost.localdomain	
> 	date		10 Oct 2007 11:17	
> 	subject		Cron <root at dellbox> run-parts --report /etc/cron.hourly	
> 
> run-parts: /etc/cron.hourly/checkmounts exited with return code 32

BING BING BING BING.... it's because of the return code... so, what's
the last command that that runs? If it's the mount, then you might want
to actually see the output of the mount command - because something is
going wrong...

Cheers,
-- 
Brett Parker




More information about the main mailing list