One way off the top of my head would be to use inotify to detect for the creation of the log file, use fuser get the pid of the process that has a handle on it, and then something like ps to get more info on the process and store it for later.
So, something like this:
inotifywait -m /my/config/lev/App/BatchServer/Logs -e create -e moved_to |
while read path action file; do
if [[ "$file" =~ myjob*.log$ ]]; then # Within quotes specify filename matching criteria
fuser $file | xargs ps -fp > ~/myanswer.txt # get pid, get info, get answer
fi
done
I've not tested it but it should do the trick.
Nik