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');