The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-19-2007
crown2100bd crown2100bd is offline
Registered User
 

Join Date: Sep 2007
Posts: 1
Script for automatic deletion of trash file of mail server

Hi,
I have a mail server with limited space and operating system is sun solaris 8 (sparc). I do not have provisions to increase the space for home directory.

So i have to delete files from /home/username/mail/trash which are more than 10 days old automatically.

So my script should be like it finds all the user name of mail server from /var/mail directory and then delete their trash from /home/username/mail/trash.

Can someone help me to generate a script for this?

With Regards,

Crown
Reply With Quote
Remove advertisements
!!
Forum Sponsor