RE: sftp ls command
From: Alan Cline (Alan.Cline_at_sas.com)
Date: Wed, 10 Mar 2004 09:08:45 -0500 To: "Maxwell Bottiger" <email@example.com>
I am writing a sftp command interpreter and parsing stdout, so my results need to be consistent. The openssh v3.4p1 on Linux doesn't accept "ls -l" but writes the results of "ls" as if it did. So, I assume it's a problem with the sftp source which I can't find.
In native Linux "ls" gives me the correct results without the permissions. I thought about a possible alias, but don't know if you can set one for an sftp command.
From: Maxwell Bottiger [mailto:firstname.lastname@example.org]
Sent: Wednesday, March 10, 2004 9:00 AM
To: Alan Cline
Subject: Re: sftp ls command
I don't know why they're different, but if you just typle "ls -l" from the
unix box you'll get the same output.
BTW, under linux my sftp output looks like your 'unix' output. Is it
possible you have some aliases set or something?
On 9 Mar 2004, alan cline wrote:
> If I execute the sftp "ls" command from a SFTP prompt in a LINUX
> openssh v3.4p1 environment I get the results of a ls -l command.
> -rw-r--r-- 1 alclin r&d 0 Sep 10 15:16 testfile
> -rw-r--r-- 1 alclin r&d 0 Sep 10 08:49 testfile2
> If I execute the sftp "ls" command from a SFTP prompt in a UNIX
> openssh v3.7p1 environment the ls command works as intended. ie just
> the intended member list.,
> ac.pdf profile test.dat
> Does anyone know what version of ssh that the SFTP LS command
> functionality changed or what could be causing this?
-- -Maxwell Bottiger http://www.jive-turkey.net If at first you don't succeed, redefine success.