Thanks!
I solved my issue by changing:
to:my $conn_command = "ssh -l $user -p 22 $ip"; my $ct = Expect->spawn($conn_command) or die "Cannot spawn $conn_comma +nd: $!\n";
my $ct = new Expect; $ct->slave->clone_winsize_from(\*STDIN); $ct->spawn($conn_command) or die "Cannot spawn $conn_command: $!\n";
Thanks all for the help.
André Saunite
In reply to Re: Using Expect and interact with vi
by saunite
in thread Using Expect and interact with vi
by saunite
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |