[ale] crontab

Terry Lee Tucker terry at esc1.com
Wed Apr 15 17:13:40 EDT 1998


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...






More information about the Ale mailing list