[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] crontab



David Hamm wrote:
> 
> I have a number of scripts that run from crontab and fill up my root mail
> spool.  How do I make crontab send mail selectively.
> 
> ------         David Hamm - dhamm at itserve.com           --------

Hi David:

If you put the following at the top of your script (if they are bash
shell scripts) all messages will go to a file and cron won't send any
mail at all:

exec > log.file 2>&1
-- 
Oakwood, GA 30566 USA
770.965.9294
http://www.esc1.com
The Gates of hell shall NOT prevail...