can someone look into this one please... I am struck at this point. I do not know what logic to be followed here. I can go ahead with my work only, if this step is done. Please Help.
I have a process X in a shell script. Once the process X is done, it generates a log file. Process X is basically a java application. We cannot assume how much time would be required for the process X to be completed once it is kicked off..
The shell script looks something like this:
date_current=`date +%m%d%y`
java -Xms512m -Xmx512m com.mainloader.databaseLoader S 12 F > file.log.$date1
I should write a shell script "Y" in such a manner, that my shell script "Y" should be able to
- check as and when the log file from the process X is created.
- once the log file is created, my script "Y" should be able to move the created log file to a different directory.
that is my script Y should automatically move the newly created log files to a different directory, immediately after the log file is created. I am not able to understand the logic here.