05-03-2005
55,
2
Join Date: Mar 2005
Last Activity: 23 October 2012, 8:32 PM EDT
Posts: 55
Thanks Given: 0
Thanked 2 Times in 1 Post
Thanks for your time,
It does not serve my purpose.
Sure, my logfile size goes backto zero.
But the moment my app starts writing to, it restores to its previous size.
This is same as:
cp mylog mylog.bak; cat /dev/null > mylog.
final result is same.
I searched google, there it has some third party tools like cronolog or logrotate, but I still wonder that perhaps this could be done via a some nice tricky shell command/script ?
Chaandana