I have 80 Php scripts that I want to run. I want to Start Script1 wait until its finish starts script2 …
Now, if I add the following :
start C:\xampp\php\php.exe -f C:\xampp\Script1.php
start C:\xampp\php\php.exe -f C:\xampp\Script2.php
start C:\xampp\php\php.exe -f C:\xampp\Script3.php
When I execute my Batch file it will run all scripts at the same time.
Is there any command I could use in my bat file to tell the system wait until script is done then execute the one after?
Anyway to set a time interval between scripts ?
I could run all 80 scripts in the cron tab, However, Id rather configure one batch file to handle all the scripts then assign this file to the crontab.
Thanks
startfires off the tasks asynchronously, thus they will all run at the same time. Use the/waitflag to start the task and wait for it to complete.e.g.
Alternately, as Marc B states, removing the start call should give you sequential execution as well.