Hi I am running gzip to unzip a file from java, and the next line uses the unzipped file. But the thread for unzipping is not a java thread ,so the next line cannot find the unzipped file as it executed before the whole file is unzipped. It takes about 15/20 seconds to unzip the file. The file is variable and so is the unzipping time.
Can you post some code? The method you use to launch gzip should allow you to watch for that process to end... I just wanted to see what you're using. Once you have a handle to the process, you should be able to wait on it.