0
我想執行2個腳本:s1
和s2
。必須執行s2
後s1
。 執行s1
的時間是2800秒,我需要在s1
之後執行s2
。我應該把sleep(3000)
放在我的php之間,還是第二個在第一個之後自動執行?在php中執行shell_exec的命令
我嘗試這樣做:
exec('python s1 '); //time of execution is 2800s
sleep(3000); // i want to be sure that the first one is finished
shell_exec('php /home/Parik/s2.php');