Executing more than one command with ssh2 exec

后端 未结 1 824
忘掉有多难
忘掉有多难 2021-01-25 05:18

I have a script that runs one command. Based on that result, I can run the next command. Steps:run first script it puts me in global then from global I will run the next command

1条回答
  •  北恋
    北恋 (楼主)
    2021-01-25 05:25

    you can do like this

    $stream = ssh2_exec($connection, 'command1;command2');
    

    0 讨论(0)
提交回复
热议问题