Ruby telnet

hi All,

I am trying to do below and I am stuck I would appreciate your help.

  1. Telnet run script 1 (this should be run without time out)
  2. Telnet and run script 2.
  3. Telnet and stop script 1 upon successful completion of step 2.

currently with the code I got…

when I do step 1…since I do not specify the timeout it is just stuck
or when I specify the time out it times out and never get to run the
second step.

Please give me some ideas. I tried to run the 1 step script in
background but then when the telnet session end and goes to the step 2 1
script dies as telnet session has ended…

On 2010-09-22, Ruwan B. [email protected] wrote:

when I do step 1…since I do not specify the timeout it is just stuck
or when I specify the time out it times out and never get to run the
second step.

Please give me some ideas. I tried to run the 1 step script in
background but then when the telnet session end and goes to the step 2 1
script dies as telnet session has ended…

Take a look at Net::Telnet

regards,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs