Control and monitoring file

Hi guys today i have new situation to resolve.
I need to create a script that the first part it's already done but the problem appear when i run
other sart_script inside of it.
i need to check a log file until it stop after run the star script
when the log file stop write, then make a copy file
check again until log file stop write
So i copy again other files.
How can i make this works!

I have the idea to control the log_file, who tell me when i can execute the action (copy file),
which it's check the size of this logs every one minute or something like that.
for the buccle i've seen also the use of the sleep,that i guess it's a good idea to include.
Please any idea?:wall:

Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.