mpen
mpen

Reputation: 282865

Execute concurrent SSH commands?

I want to write a little PHP script using the ssh2_* functions to deploy some code to several servers concurrently and run a few tasks.

Is this possible in PHP, or do I have to wait for each request to complete?

I can use a different language, but we're a PHP shop so I thought I'd stick with the familiar.

Upvotes: 3

Views: 246

Answers (1)

Barmar
Barmar

Reputation: 780974

ssh2_exec() allows multiple concurrent requests. See here.

Upvotes: 3

Related Questions