Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Facing Problem with Perl Expect, if the command length is slightly longer is splitting into 2-3 lines with garbage

by igelkott (Priest)
on May 27, 2014 at 17:36 UTC ( [id://1087564] : note . print w/replies, xml ) Need Help??


in reply to Facing Problem with Perl Expect, if the command length is slightly longer is splitting into 2-3 lines with garbage

default terminal line-length problem

I don't really understand how you got that mangled line in your log but you could try to have the session match your local line-length with:

$exp->slave->clone_winsize_from(\*STDIN);

If that doesn't work, try sending a direct command like: stty columns 144