The Little Guy Posted August 24, 2008 Share Posted August 24, 2008 Quick question about exec... If I use exec to do the following command: php convertToFlv.php will the script wait until convertToFlv.php finishes doing what it is supposed to do (convert files to flv) or will it run that command and continue, and finish running my current file while convertToFlv.php does it's thing? Link to comment https://forums.phpfreaks.com/topic/121075-exec/ Share on other sites More sharing options...
genericnumber1 Posted August 24, 2008 Share Posted August 24, 2008 Not sure, but you could test it out with a combination of sleep() and echos... But I would guess it would wait for the process to finish before resuming execution. edit: just checked.. yes, it does wait. Link to comment https://forums.phpfreaks.com/topic/121075-exec/#findComment-624164 Share on other sites More sharing options...
trq Posted August 24, 2008 Share Posted August 24, 2008 exec will wait for the process to finnish before continuing. Link to comment https://forums.phpfreaks.com/topic/121075-exec/#findComment-624234 Share on other sites More sharing options...
LemonInflux Posted August 24, 2008 Share Posted August 24, 2008 Like a normal script, it runs in the order it is set. It won't move on until it's finished what it had to do first. ---------------- Now playing: Linkin Park - One Step Closer via FoxyTunes Link to comment https://forums.phpfreaks.com/topic/121075-exec/#findComment-624236 Share on other sites More sharing options...
The Little Guy Posted August 25, 2008 Author Share Posted August 25, 2008 is there a way I can have it be commanded to run, then continue the script (even If I don't use exec)? Link to comment https://forums.phpfreaks.com/topic/121075-exec/#findComment-624690 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.