HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to suppress error messages
Operating System - HP-UX
1829108
Members
14064
Online
109986
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-03-2003 10:34 AM
09-03-2003 10:34 AM
how to suppress error messages
I has a cron that when run will generate an email message of the cron's output.
Is there a way to tell it not to generate the output?
Thanks
Is there a way to tell it not to generate the output?
Thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 10:38 AM
09-03-2003 10:38 AM
Re: how to suppress error messages
You can pipe the output to /dev/null
scriptname > /dev/null
You will get no output.
You may not be able to figure out when it fails.
SEP
scriptname > /dev/null
You will get no output.
You may not be able to figure out when it fails.
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-03-2003 10:39 AM
09-03-2003 10:39 AM
Re: how to suppress error messages
A cronjob will generate an email if it is explicitly told to or if it exits with an error. If the mail statement is within the script itself, then you will need to modify the script and find for "sendmail|mailx|elm" etc., If not, then it may be directly fed into the cron entry itself in which you will need to redirect the output to /dev/null instead to the mail agent. Post your cron entry "crontab -l" and one should be able to figure it out.
-Sri
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2003 10:57 AM
09-03-2003 10:57 AM
Re: how to suppress error messages
Charles,
As SEP suggested, you can suppress the output of the scripts which are kicked of by cron by redirecting to /dev/null.
For stdout 1>/dev/null and for other error messages 2>/dev/null.
HTH,
Umapathy
As SEP suggested, you can suppress the output of the scripts which are kicked of by cron by redirecting to /dev/null.
For stdout 1>/dev/null and for other error messages 2>/dev/null.
HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP