I have written a short program in which the output of a command is used as input for a second one.
I have noted that sometime the second command start before the first one had completed the creation of the intermediate file.
is there any method to force the command to wait the completion of the execution of the com method?
thank you!
Wait for esecution completed
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Wait for esecution completed
We have see this problem before, and it is caused by the Windows buffering the output of the image. The IM command itself has closed and finished everything. Just windows itself is not finished writing the buffered data!!!!
The only solution I have so far seen is to wait a bit. But then I am not a windows user or programmer. I just know IM is not at fault for this.
The only solution I have so far seen is to wait a bit. But then I am not a windows user or programmer. I just know IM is not at fault for this.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/