Email inside cron

Jurvis LaSalle lasalle at bard.edu
Fri Aug 20 18:49:40 UTC 2004


On Aug 20, 2004, at 11:27 AM, Bob Smith wrote:

> You might consider adding the -b flag to explicity set a source email
> address.  You may find that LOGNAME or USER is not set in the cron
> environment, and that may be part of the problem.  Try something like
> this:
>
> /bin/mail -s "${MsgHeader} finished." ${MailTo} -b ${REAL_USER} < 
> ${logfile}
>
> -Bob
>

I'm curious as to which mail command uses the -b flag like that.  I'm 
running RHEL v3U2 and the man page says -b is for the BCC field...

Jurvis LaSalle






More information about the redhat-list mailing list