- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - Linux
 - >
 - mail after run crontab job
 
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
 
05-16-2008 12:55 AM
05-16-2008 12:55 AM
Solved! Go to Solution.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-16-2008 03:37 AM
05-16-2008 03:37 AM
SolutionRedirect STDOUT and STDERR to somewhere in your job, for example:
0 1 * * * /path/to/job.sh > /dev/null 2>&1
Or set at the begining of your cron definitions:
MAILTO=""
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-19-2008 12:19 AM
05-19-2008 12:19 AM
			
				
					
						
							Re: mail after run crontab job
						
					
					
				
			
		
	
			
	
	
	
	
	
You have to remove the root@my_domain part from the cron line or from the script as above.
Otherwise, please post the exact lines from the script/cron.
Rgds.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-20-2008 12:03 AM
05-20-2008 12:03 AM
			
				
					
						
							Re: mail after run crontab job
						
					
					
				
			
		
	
			
	
	
	
	
	
Ivan's method is good , but I have many many line , if use this method , the cron file will become very large ,
Hi Rasheed Tamton ,
where is the line that contains the root@my_domain ?
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-20-2008 12:59 AM
05-20-2008 12:59 AM
			
				
					
						
							Re: mail after run crontab job
						
					
					
				
			
		
	
			
	
	
	
	
	
It is from your original post.
Rgds.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-01-2008 11:13 PM
06-01-2008 11:13 PM
			
				
					
						
							Re: mail after run crontab job
						
					
					
				
			
		
	
			
	
	
	
	
	
--------
MAILTO=""
* * * /bin/test.sh
* * * /bin/blah.sh
etc
etc
--------