This is just a guess but all this mucking around with line endings makes me think you might want to look over what Net::SSH::Expect has to say about psuedo-terminals.
In reply to Re: Getting rid of $/ on linux
by rowdog
in thread Getting rid of $/ on linux
by kamal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |