- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: crontab question
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
Discussions
Discussions
Forums
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
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
тАО10-09-2003 04:00 AM
тАО10-09-2003 04:00 AM
i have a job in the crontab that is running every 5 minutes. The problem is that it sending an email to root everytime. Is there a way to deactivate it? I want to keep having an email send to root for my backups but not for this job.
thanks
regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2003 04:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2003 04:39 AM
тАО10-09-2003 04:39 AM
Re: crontab question
#crontab -l
To modify the crontab entry so it stop sending mail each time it runs, that is if this is part of the contab entry.
# crontab -e
If the mail is send from the within the script, modify the script.
If this does not help attach you crontab and or the content of the invoked script, so whe can help you futher.
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2003 04:44 AM
тАО10-09-2003 04:44 AM
Re: crontab question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2003 05:06 AM
тАО10-09-2003 05:06 AM
Re: crontab question
what does the mail contain. how about redirecting the standard error and output to a different file.
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2003 07:43 PM
тАО10-09-2003 07:43 PM
Re: crontab question
00 08 * * * /scripts/fs_check3.sh >/dev/null 2>&1
This is a crontab entry which runs everyday at 8am and I redirected whatever the output and the error to null. Inside the script I have a mailx command which sends me mail whenever the failure occurs.
Do a
# crontab -e
Edit your script line and add the entry >/dev/null 2>&1 at the end of the line.
You mar redirect to a temp file also for your future reference.