* Cliff Sarginson <[EMAIL PROTECTED]> wrote:
> On Thu, Dec 06, 2001 at 11:12:14PM +0100, Nicolas Rachinsky wrote:
> > Hallo,
> > 
> > I want mutt to move some mails from one archive folder to another
> > (compressed) one. Since this lasts some time on my old computer, I
> > want to do it via a cron job. Setting up a muttrc to do it, is no
> > problem, but cron mails me the output of mutt which is a bit strange,
> > because it's not appropriate for being mailed. Is there any way (some
> > sort of batch mode) to retrict mutt's output to error messages and
> > similar things? Or how do you think I should do it?
> > 
> Cron will mail the standard output and error to you by default.
> Try appending the following to the end of the cron command:
> 
>         2>&1 >/dev/null
Another alternative would be setting the MAILTO variable in your crontab

MAILTO=/dev/null

Although every job after that line will not have mail sent.


> 
> Mmm..you should only then get errors mailed to you.
I usually allow errors so I'm alerted of failed jobs,.

> Or possibly an empty email.
> There is more than 1 version of cron in the wild,
> some have other possibilities.
> 
> -- 
> Regards
> Cliff
> 
> 

Curt
-- 
Any time things appear to be going better, you have overlooked
something.

Reply via email to