Hi,

I did not know you could use du.  Nice


Perhaps it is a path isue. I have a sftp site which had simaliar issue to
and kept giving me access failed.

Try (3.6.3 and up)


set sftp:use-full-path yes

Bill

lftp forever!


On 4/8/08, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> Hi Bill,
> I don't think that this is what I want - I'm connected to a remote server
> via SFTP and want to know the diskusage of a remote file - as it works with
> a FTP connection without problems.
>
> The 'du' is a command that is supported by LFTP, by the way (see "help du"
> within LFTP shell)
>
> Regards
> Stefan.
>
> On Tue, Apr 8, 2008 at 3:00 PM, Bill Dorsey <[EMAIL PROTECTED]> wrote:
>
> > Stefan,
> >
> > If you are running that on the local server, then you will need the ! in
> > front of it. The bang escapes from the lftp client and allow commands to run
> > locally.
> >
> >
> > Bill
> >
> > LFTP forever!
> >
> >
> >   On 4/7/08, [EMAIL PROTECTED] <
> > [EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > > I have a problem with 'du' command when using a connection in sftp
> > > mode - if executed on a non-existent file, there is no error or anything
> > > else :-(
> > > When using "normal" ftp protocol, everything works as expected. But
> > > using sftp the result size changes between 0 and some very large 
> > > numbers...
> > > (see below)
> > >
> > > lftp :~> open sftp://myHost; user myUser myPassword;
> > > lftp [EMAIL PROTECTED]:~> cd /media
> > > cd ok, cwd=/media
> > > lftp [EMAIL PROTECTED]:/media> du -b nonExistentFile
> > > 0       nonExistentFile
> > > lftp [EMAIL PROTECTED]:/media> du -b nonExistentFile
> > > 8101815696560631342     nonExistentFile
> > > lftp [EMAIL PROTECTED]:/media> du -b nonExistentFile
> > > 8591075616      nonExistentFile
> > > lftp [EMAIL PROTECTED]:/media> du -b nonExistentFile
> > > 1536    nonExistentFile
> > > lftp [EMAIL PROTECTED]:/media> du -b nonExistentFile
> > > 8591128088      nonExistentFile
> > > lftp [EMAIL PROTECTED]:/media> du -b nonExistentFile
> > > 32219504624795648       nonExistentFile
> > > lftp [EMAIL PROTECTED]:/media>
> > > lftp [EMAIL PROTECTED]:/media>
> > > lftp [EMAIL PROTECTED]:/media> open myHost; user myUser myPassword;
> > > lftp [EMAIL PROTECTED]:~> cd /media
> > > cd ok, cwd=/media
> > > lftp [EMAIL PROTECTED]:/media> du -b nonExistentFile
> > > du: Access failed: 550 /media/nonExistentFile: No such file or
> > > directory.
> > >
> > >
> > > This error occurs on lftp version 3.5.14 as well as on 3.7.0 (I didn't
> > > tested other ones), compiled and used on Solaris 10.
> > >
> > > Can you please explain this behaviour to me? Thanks a lot for this
> > > wonderful tool nevertheless ;)
> > > Best regards, Stefan.
> > >
> > >
> >
> >
>
>

Reply via email to