- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to check what is writing to /var/mail/root
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
тАО02-18-2010 03:49 PM
тАО02-18-2010 03:49 PM
How to check what is writing to /var/mail/root
Thanks,
f. halili
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2010 04:24 PM
тАО02-18-2010 04:24 PM
Re: How to check what is writing to /var/mail/root
If it is mail messages, then the messages themselves should yield some clue as to what is creating them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2010 04:27 PM
тАО02-18-2010 04:27 PM
Re: How to check what is writing to /var/mail/root
Remember that any un-redirected output (STDOUT or STDERR) from a cron job will automatically generate mail to the process user.
If you have mail for the root user, I would think you should be able to match the contents to a crontask.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2010 06:20 PM
тАО02-18-2010 06:20 PM
Re: How to check what is writing to /var/mail/root
tail -500 /var/mail/root
You of course need a terminal emulator that will remember 20-40 pages of text so you can scroll back to look at the messages. The messages will tell about the problem.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2010 07:02 PM
тАО02-18-2010 07:02 PM
Re: How to check what is writing to /var/mail/root
You can also use mailx.
# mailx
? fold (tells you how many messages)
? h $ (goes to the end)
? t message-number
? x (quit with no changes)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2010 11:49 PM
тАО02-18-2010 11:49 PM
Re: How to check what is writing to /var/mail/root
root's mail is very important. A lot of useful information you can get from there.
In this file:
/etc/mail/aliases
You can find out what aliases are defined for root account. Some of those aliases are used by the system in order to send messages generated by some daemons.
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2010 07:37 AM
тАО02-19-2010 07:37 AM