0 votes
by (240 points)
edited

I caugth included example WinFormRExec, and started two threads, calling each thread to

private void SendCommand()
{
   code on included example....
}

Seems that both threads are executed and that both sessions are started, i´m sending on each thread a long runing task (a ssh cpmmand that needs some minutes). I´m using:

while (shell.IsRunning == true) {
   string line = shell.ReadLine();
   DoUpdate(line); //DoUpdate is a delegate to update the GUI
}

But i only receive data in real time from one thread, the other thread send all data when second thread finished. Not sure if i´m missing soemthing or if isn´t possible start two simulatenous ssh conections to same serve.

Thanks in advance for your time and help.

1 Answer

0 votes
by (240 points)
edited

Sorry i feel stupid :P , was my mistake, i fixed the code missed something. Solved. :)

by (144k points)
No problem! Don't hesitate to ask if you run into problems again.
...