Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: remote execute keyboard keys after connecting through telnet

by Anonymous Monk
on Oct 26, 2012 at 16:36 UTC ( [id://1001122]=note: print w/replies, xml ) Need Help??


in reply to remote execute keyboard keys after connecting through telnet

It sounded like you didn't have CB60 open and weren't catching all the responses, so here's a transcript:
  • Tanktalus 2012-10-26 15:55:09 UTC anandk_vec: I would start by trying to send the characters across the telnet session directly: chr(25) . 'm'
  • anandk_vec 2012-10-26 16:00:34 UTC how? i cant get you
  • Tanktalus 2012-10-26 16:04:47 UTC Are you using Net::Telnet? How do you send text with that?
  • Tanktalus 2012-10-26 16:07:19 UTC Looks like Net::Telnet has a put method: $obj->put(String => chr(25) . 'm')
  • anandk_vec 2012-10-26 16:11:43 UTC i use ->cmd();
  • anandk_vec 2012-10-26 16:12:48 UTC $obj->cmd()
  • anandk_vec 2012-10-26 16:10:14 UTC voronich..you there
  • Tanktalus 2012-10-26 16:13:45 UTC Yes, but cmd will also send the \n character, whereas put doesn't. So you still use cmd for the command you're running, but use put for this.
  • Comment on Re: remote execute keyboard keys after connecting through telnet

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found