I have a problem with .sh script that saves files to zip cyclically. Another program in java tries to read these files and sometimes there is a problem because the sh script does its job and writes files into zip, is it possible to check in java whether the zip file is being written by .sh script?
EDIT: firs, thanks for all advices, I got idea: i can copy existing zip and create new one with diffrient name than the last one f.e temporary, after changes are done, i would change it name and delete old zip. Names are dates