Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I want expect type functinality.. with out expect

Status
Not open for further replies.

travs69

MIS
Joined
Dec 21, 2006
Messages
1,431
Location
US
What I am trying to do is launch a telnet session, do some expect type of stuff (get through the login prompts, runs some commands), but at the end I would like to leave the telnet session up and running and let the user interact with it.

This seems to me to be a perfect candidate for expect.. but it seems like getting expect to run on windows is a PITA. Activestate doesn't support it on 5.6 or 5.8. The only way I saw to use it is under cygwin. My only issue with that is I have been compiling my scripts for others to use (they won't load perl anywhere at my work :( ) and I don't know how if pp works under cygwin and if my expect functionality will still work because it sounds like it depends on the cygwin.dll.

Now.. I could do all of this with Net::Telnet.. expect leaving it open at the end and letting a user interact with it.. it seems like that would be a big pain. I would prefer just to open a telnet window.. send some characters, and then leave it open at the end.

Sorry for the long winded explanation ..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top