I'm working on a program which has a thread. The thread does the following:
1. Creates a file.
2. Runs a chmod 700 on the file so that I can run it.(AIX)
3. Runs the actual file.
4. Filters a file which step 3 creates while running.
5. Writes the filtered results to a final file.
The problem I'm having is that it takes time to write to files and run certain commands. There is not enough time in between the steps and I get errors because the step before is not yet complete. Is there a way I can put pauses in the thread so that it will run right? Please let me know. If necessary I can post the syntax of the thread.
Thanks in advance.
1. Creates a file.
2. Runs a chmod 700 on the file so that I can run it.(AIX)
3. Runs the actual file.
4. Filters a file which step 3 creates while running.
5. Writes the filtered results to a final file.
The problem I'm having is that it takes time to write to files and run certain commands. There is not enough time in between the steps and I get errors because the step before is not yet complete. Is there a way I can put pauses in the thread so that it will run right? Please let me know. If necessary I can post the syntax of the thread.
Thanks in advance.