imta purge

The imta purge command deletes older versions of IMTA log files. imta purge can determine which log files are older, based on the uniqueid strings terminating IMTA log file names.


Syntax

 
imta purge [file-pattern] -day=d-value -hour=h-value -num=n-value
 

If specified, the file-pattern parameter is a filename pattern that establishes which IMTA log files to purge. The default pattern, if none is specified, is /var/opt/SUNWmail/imta/log. The options for this command are:

-day=d-value  

Purges all but the last d-value days worth of log files.  

-hour=h-value  

Purges all but the last h-value hours worth of log files.  

-num=n-value  

Purges all but the last n-value log files. The default is 5.  


Example

To purge all but the last five versions of each type of log file in /var/opt/SUNWmail/imta/log, execute the command:

 
# imta purge
 




Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved.