I use a java program to wite weblogic log files to db. I need to have a shell script to call the java prog with the names of the latest updataed log files except the most recent log files that is still being updated by the server. For example lets assume the log files are being writen in the server as below
The script should pickup the acess*.log files, and pass theem to the java program as soon as they are written. However the current access.log should be ignored and no file should be passed twice.
Thanks in advance....