Results 1 to 1 of 1
I rewrote some expect scripts that transfer files across not so secure networks that run on an old venerable 2.4 kernel as well as on the terrific 2.6 Kernel. I ...
- 01-10-2008 #1Just Joined!
- Join Date
- Oct 2005
- Posts
- 1
SFTP command alias.
I rewrote some expect scripts that transfer files across not so secure networks that run on an old venerable 2.4 kernel as well as on the terrific 2.6 Kernel. I switched from FTP to SFTP.
The problem is, the sftp> `ls' is a single column on the venerable 2.4 distribution like it was an sftp> `ls -1' command on the new distribution. `ls' on the new distribution is multi-columnar.
How can I alias the sftp> `ls' command on the 2.6 kernel distribution such that it looks like the old `ls' command?
``alias ls=`ls -1'" is kinda what I'm trying to do. I'll otherwise need to use separate scripts, something I'd like to avoid!
FWIW; the 2 linux distributions are the client, the server is a Windows XP running Cygwin for the SSHd.
Thanks!


Reply With Quote