Reputation: 813
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
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