Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个运行一个命令的脚本。基于该结果,我可以运行下一个命令。步骤:运行第一个脚本,它将我置于全局,然后从全局运行下一个命令。 第一个命令: $stream = ssh2_exec($connection, 'config global'); 在这个结果之后我应该运行这个因为我需要进入 global $stream = ssh2_exec($connection, 'get hardware cpu');
你可以这样做
$stream = ssh2_exec($connection, 'command1;command2');