I have a WebSphere service which creates an Applicaiton Log everytime the JVM is restarted. However we need the application logs to be recycled every night (at midnight). I've written a short Korn Shell script to 'mv' the files to a new name (appended with the date) but afterwards the files are still updated by the application.
Why is this the case if the file name is different? Or am I missing some knowledge regarding how the file system updates? Should I infact 'copy' the file to the new appended filename (with date) and null the application log file? or is there a 'cleaner' way of approaching this?