I'm just not sure... Does a script with exec(....) wait until the exec() is complete before continuing?
for instance my script will flow like this....
- Copy PDF file from AWS to web server
- Convert PDF file to JPG (exec())
- Upload JPG to AWS
- Delete both files from server.
Repeat 10,000 times...
Do i need to write something to halt the code until the exec is complete? or can use the exec command, move the files, then delete the files? My concern is the program will try to delete the files before they are converted.
I hope this is clear and thanks...