- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to clear mail
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
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
тАО11-02-2007 02:14 AM
тАО11-02-2007 02:14 AM
how to clear mail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2007 02:19 AM
тАО11-02-2007 02:19 AM
Re: how to clear mail
run "elm", mark all mails to be deleted "d", "q"uit elm and answer "y"es, I want to delete them.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2007 02:25 AM
тАО11-02-2007 02:25 AM
Re: how to clear mail
Ramana,
You can clearn the mail by nullify
# > /var/mail/root
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2007 02:34 AM
тАО11-02-2007 02:34 AM
Re: how to clear mail
By default the system will inform root via mail about events (for example hardware problems). If you delete all mails, you may miss important notifications. Keep an eye on this mailbox!
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2007 02:50 AM
тАО11-02-2007 02:50 AM
Re: how to clear mail
Excerpt from aliases:
root : you@yourdomain.com
After you modify /etc/aliases you need to run the 'newaliases' command.
Now all root mail will go to you@yourdomain.com.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2007 03:58 PM
тАО11-02-2007 03:58 PM
Re: how to clear mail
The right way to solve this is to only generate mail if there is something wrong.
You can do this by sending or appending the crontab output to a file. And then browse it if these are low priority issues.
Or make sure your script doesn't send any output unless you need to know about it.
You can of course redirect stdout and stderr to /dev/null:
... > /dev/null 2>&1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-02-2007 04:07 PM
тАО11-02-2007 04:07 PM
Re: how to clear mail
If you are logged in by root then delete file /var/mail/root or if anyother username then delete respective file for ex.
if user 'xyz' then delete /var/mail/xyz file.
OR if you dont want mail after execution of cron job then redirect stdout and stderr to /dev/null:... > /dev/null 2>&1
This way you wouldn't get mail after execution of cron job.