Solved

root mail file filling fast (solaris 2.x)

Posted on 1998-06-09
1
223 Views
Last Modified: 2013-12-27
the local root mail file fills rapidly with informational messages from scripts and monitoring products. I need to automatically ( Once every 24hrs. ) go thru the file and delete emails that are more than 24hrs. old. I do need to keep emails within 24hr. period. ?
0
Comment
Question by:928
1 Comment
 
LVL 51

Accepted Solution

by:
ahoffmann earned 50 total points
ID: 2007768
add following in roots crontab:

59 23 * * * mv /var/spool/mail/root{,`.date +%d%m%y`}
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now