HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- crontab without mail
Operating System - Linux
1825941
Members
2552
Online
109689
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 03:24 AM
09-27-2007 03:24 AM
crontab without mail
Red Hat Enterprise Linux AS 3U6
Every time a shell script is executed trhough a crontab, it sends a mail to /var/mail/oracle
Is there any way to avoind this mail sending?
Every time a shell script is executed trhough a crontab, it sends a mail to /var/mail/oracle
Is there any way to avoind this mail sending?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 03:26 AM
09-27-2007 03:26 AM
Re: crontab without mail
Set your cron job like this:
5 * * * 1 /path/to/script > /dev/null 2>&1
Or set the MAILTO variable to null:
MAILTO=
Preferred method is the first.
5 * * * 1 /path/to/script > /dev/null 2>&1
Or set the MAILTO variable to null:
MAILTO=
Preferred method is the first.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 05:25 AM
09-27-2007 05:25 AM
Re: crontab without mail
Shalom,
Very interesting. A simple read/post of crontab -l will show that the cron schedule was directing its output to mail.
This was not done automatically, it was configured with the help of a human.
SEP
Very interesting. A simple read/post of crontab -l will show that the cron schedule was directing its output to mail.
This was not done automatically, it was configured with the help of a human.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 08:40 AM
09-27-2007 08:40 AM
Re: crontab without mail
No, cron will redirect STDOUT from any jobs executed via email to the owning user.
As far as I am aware, it always has. It has to be overwritten with the MAILTO environment variable set within the cronjob it's self (as Ivan has said).
As far as I am aware, it always has. It has to be overwritten with the MAILTO environment variable set within the cronjob it's self (as Ivan has said).
One long-haired git at your service...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP