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

Mmm..you should only then get errors mailed to you.
Or possibly an empty email.
There is more than 1 version of cron in the wild,
some have other possibilities.

-- 
Regards
Cliff


Reply via email to