Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Control:CLI or Net::SSH2 - Send <ctrl>_

by huck (Prior)
on Feb 21, 2017 at 16:13 UTC ( [id://1182442]=note: print w/replies, xml ) Need Help??


in reply to Re: Control:CLI or Net::SSH2 - Send <ctrl>_
in thread Control:CLI or Net::SSH2 - Send <ctrl>_

Ok, one more limb, this is but a mere hailmary guess.

what if you first have to be in the console before even escape works?

so in the original test code replace

my $switchexit = $obj->print("\037"); # <== PROBLEM
with
$output = $obj->put("\x0a"); Sleep 1; # give it time to start the console; $output = $obj->put("\x1f"); Sleep 1; # give it time to for a "time guard interval" ;
Sorry about going back to hex, i dont think as well in octal.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1182442]
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-19 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found