我需要一个接一个地运行2条命令,exec但它不会运行。
代码
$command1 = 'cd '.$destination.''; //open destination folder (e.g. public_html)
$command2 = 'git clone '.$repos->repository.''; //make clone
$sshConnection1 = exec($command1); // run first command(open folder)
$sshConnection = exec($command2); //run second command (make clone)
之前,我创建了这个问题我看了一些建议的主题,如这一个。添加"&"等等,但是没有运气。
请告诉我我该怎么做才能成功运行这两个命令。
慕尼黑5688855