Operating System - HP-UX
1831929 Members
3694 Online
110031 Solutions
New Discussion

Re: How can I stop email messages from cron and at

 
SOLVED
Go to solution
mike worrell
Regular Advisor

How can I stop email messages from cron and at

Ever since we went to HPUX 11.0, everytime cron or at runs something I get an email. How can I stop this?

Thanks,
Mike
4 REPLIES 4
Enrico P.
Honored Contributor
Solution

Re: How can I stop email messages from cron and at

Hi,
by man crontab:

WARNINGS
Be sure to redirect the standard output and standard error from
commands. If this is not done, any generated standard output or
standard error is mailed to the user.

Enrico
harry d brown jr
Honored Contributor

Re: How can I stop email messages from cron and at

You probably aren't redirecting output to /dev/null or to a log file.

post your crontab entries

crontab -l

live free or die
harry d brown jr
Live Free or Die
Doug O'Leary
Honored Contributor

Re: How can I stop email messages from cron and at

crontab -e

* * * * * ${command} > /dev/null 2>&1

HTH;

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
mike worrell
Regular Advisor

Re: How can I stop email messages from cron and at

Thanks to all for your help.
I did the item Doug suggested and they stopped. Weird , my job in cron hasn't changed in years and never sent anything to email until 11.0 upgrade.. It's fixed now.
Many thanks to all.

Mike