Hi,

I am trying to run a command on a remote unix box, via SSH. This command takes a lot of time to complete (something like 45 minutes). However even if the process at te Unix side terminates (I check that with the unix 'ps' command to ensure that the process has terminated), the Rebex.NET side is still stuck at the RunComand and never ends....

Maybe a timeout issue from the SSH server ? I have already tried to put the Timeout property to -1 on the Rebex side.

Regards,

Nabil.

asked 31 Oct '10, 17:13

Nabil's gravatar image

Nabil
16
accept rate: 0%


Normally, with Timeout property set to -1, the RunCommand method should end when the command finishes and the underlying channel is closed by the server.

A timeout from the SSH server should manifest itself in form of connection or channel termination, which in turn would cause the RunCommand method to throw an exception.

The behavior you encountered is not any of these two cases, which means something strange is going on. Would it be possible to create a communication log (which spans those >45 minutes) using Ssh object's LogWriter property and either edit your question to include it or mail it to support@rebex.net for analysis?

link

answered 01 Nov '10, 13:19

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.4k28
accept rate: 31%

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
×5

Asked: 31 Oct '10, 17:13

Seen: 436 times

Last updated: 21 Mar '11, 21:22