Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
more useful options
 
PerlMonks  

Re^4: Net::OpenSSH multiple commands

by salva (Monsignor)
on Apr 25, 2012 at 09:22 UTC ( #967027=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Net::OpenSSH multiple commands
in thread Net::OpenSSH multiple commands

This looks like a bug on the router SSH stack. Try to replicate it running the following command from the command line in order to discard Perl or Net::OpenSSH as the cause of the problem.

ssh router <<EOC terminal length 0 terminal width 512 show ip accounting exit EOC

I guess the malfunction is caused by some buffer overflow on the remote shell that is triggered by the longer command line.


Comment on Re^4: Net::OpenSSH multiple commands
Download Code
Re^5: Net::OpenSSH multiple commands
by mlebel (Friar) on Apr 25, 2012 at 11:36 UTC
      my working solution has been provided on the main page.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2013-05-25 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (520 votes), past polls