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

Re: Telnet cmd command

by regexes (Hermit)
on Mar 30, 2013 at 13:56 UTC ( [id://1026270]=note: print w/replies, xml ) Need Help??


in reply to Telnet cmd command

Maybe as an alternative, consider sending back want is being requested, i.e. a response. That should cause the rest of the output to be delivered.

It's mentioned quite often in the Net::Telnet documentation to use print() and waitfor() when the cmd() function does not do what you want it to.

Since the carriage feed is added automatically, try just sending back any character.

As an example... (note this is untested)
$string = "show"; $thost->print($string); $thost->waitfor('----More---') $anykey = "b"; $thost->print($anykey);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found