Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^3: Telnet Issue

by ramlight (Friar)
on Sep 03, 2009 at 19:49 UTC ( #793285=note: print w/replies, xml ) Need Help??

in reply to Re^2: Telnet Issue
in thread Telnet Issue

As ssandy pointed out in greater detail, this is simply not going to do what you would like it to.
$telnet = `telnet $hostname `; $telnet -> waitfor('/Username: $/i');
If you want to script a telnet session, `telnet` isn't going to get you there; you're going to have to find another approach (such as Net::Telnet).

Perhaps you might want to tell us more about why you decided NOT to use Net::Telnet. Perhaps someone here can help you get it to do what you need.

Replies are listed 'Best First'.
Re^4: Telnet Issue
by jag (Initiate) on Sep 04, 2009 at 08:41 UTC
    Hi guys, Thanks for all your support, the reason why i didnt choose Net::Telnet is i was not having the root access to install the Net::Telnet module. Thats why i tried with this option. Cheers, Jag

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://793285]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2022-12-09 19:51 GMT
Find Nodes?
    Voting Booth?

    No recent polls found