ruby telnet

R

Ruwan Budha

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...
 
S

Staf Wagemakers

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...

Take a look at Net::Telnet

regards,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top