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.
In reply to Re^4: Net::OpenSSH multiple commands
by salva
in thread Net::OpenSSH multiple commands
by mlebel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |