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.

asked 18 Mar '11, 01:55

Zeokat's gravatar image

Zeokat
261
accept rate: 0%


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

link

answered 18 Mar '11, 02:14

Zeokat's gravatar image

Zeokat
261
accept rate: 0%

No problem! Don't hesitate to ask if you run into problems again.

(18 Mar '11, 15:34) Lukas Pokorny ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×44
×9

Asked: 18 Mar '11, 01:55

Seen: 315 times

Last updated: 01 Apr '11, 02:22