logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <duvelbier-tsm...@yahoo.com>
Subject Re: Deleting x-days old log files.
Date Mon, 12 Jun 2006 16:44:33 GMT

for file in `find ${base_dir}` -name "*.log" -atime ${day_old}
do
    rm -fr ${file}
done 


;)

\T,
 
--  Any fool can write code that a computer can understand.  
Good programmers write code that humans can understand.                                  
                 
Martin Fowler  
 
T. : +32 (0)2 742 05 94 
M. : +32 (0)497 44 68 12 
@  : duvelbier-tsmets@yahoo.com 
Do you skype too ... (callto://tsmets/) ?

----- Original Message ----
From: Muhammad Adnan Qureshi <adnan@globalnorthstar.com>
To: log4j-user@logging.apache.org
Sent: Friday, June 9, 2006 2:29:20 PM
Subject: Deleting x-days old log files.

Hi, 

    I was wondering If I can delete x-days old log files automatically ?
    Please help :-)

-Regards
Muhammad Adnan Qureshi





---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message