|more useful options|
Using Expect and interact with viby saunite (Initiate)
|on Sep 13, 2012 at 18:49 UTC||Need Help??|
saunite has asked for the
wisdom of the Perl Monks concerning the following question:
I am doing a simple perl script to connect to a remote machine via ssh and open an interactive terminal
The connection works fine, the problem is that, after I am connected to a Solaris box, if I try to open a file in vi, it shows the whole screen with the ~ at the beginning of each line, even though the last line correctly shows the file name and number of characters in the file, but the text inside the file is not shown, and also, if I try to edit it, the ~ continues there as if they were part of the text.
I tried the same on a Linux box, and what happened was that I could edit the file, but the file was inside a small "box" in the left upper corner of my terminal, instead of being the whole size of my terminal.
I am using the code below:
Does anyone have an idea of why is it behaving like that?
Thanks very much in advance!!!