Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Would like Net::Telnet to transfer control.

by nafion112 (Novice)
on Jan 21, 2009 at 20:27 UTC ( [id://737937]=perlquestion: print w/replies, xml ) Need Help??

nafion112 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Everyone! I'm trying to use Net::Telnet to automate a remote login and do some things for me before transferring control over to my terminal. I've gotten everything to work except for the last part. How would I tell my telnet object that I want its connection dropped off at my terminal before closing it. Thanks!
  • Comment on Would like Net::Telnet to transfer control.

Replies are listed 'Best First'.
Re: Would like Net::Telnet to transfer control.
by matija (Priest) on Jan 21, 2009 at 22:44 UTC

    I'm not sure you can do that with Net::Telnet, but it might be possible with Expect

    Specifically, you could run telnet in Expect, than at the right moment, invoke the interact command.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://737937]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-04-23 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found