Write a cron job to copy and concatinate the file to a archive location and 
touch the original file to empty its contents..
You would also manually need to go through the archived file and touch it every 
now and then to check the health of your system. If you aren't going to do that 
there is no point in archiving the file in the first place..
Joe



----- Original Message ----
From: Wirasat Siddiqi <[EMAIL PROTECTED]>
To: arslist@ARSLIST.ORG
Sent: Wednesday, May 21, 2008 9:53:07 AM
Subject: Restricting the growth of arerror.log file

** 
What is the best way to move the arerrror.log file to some archive directory 
when it becomes a really large file without re-starting the system.
What we are doing to move the file when it becomes big is as follows:
We are using Linux SUSE 10 OS.
 
cp arerror.log arerror.log.bak
cp /dev/null arerror.log
 
Do you think it is the correct way of emptying out arerror.log file? Please 
advice.
 
Thanks,
Wirasat




_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Reply via email to