sajattack
sajattack

Reputation: 813

Twisted SSH multiple simultaneous commands

I've used twisted to make an SSH server similar to the one shown here. My question is, is it possible to use multithreading to run multiple commands simultaneously? I tried making a do_ function that started a thread and that didn't accomplish what I was after. Should I make multiple client connections instead?

Upvotes: 2

Views: 506

Answers (1)

Jim Dennis
Jim Dennis

Reputation: 17510

Perhaps you should look at adding Twisted sub process spawning support to your code?

http://twistedmatrix.com/documents/current/core/howto/process.html

... it's a bit hard to be more specific as you haven't included any code for us to comment on.

Upvotes: 2

Related Questions