On Tue, 04 Nov 2003 15:15, you wrote:
> I am using ncftp, although any method anyone wants to point me to will
> do,
>
> I need to get the output of ls -lR on the remote ftp server, and store
> it for parsing (I am searching for a file somewhere in a big dir tree).
>
> typing ls -lR at the ncftp prompt gives me the data I want, but it
> doesn't seem to be redirectable or greppable.
>
> what to do?
Use the ( very ) traditional unix line ftp client.
Typecript and data files attached.

Some ftp sites prohibit ls -lR because it consumes not inconsiderable 
resources and can generate so much data. Some good ftp archives have that 
file in the top level directory. 

Tried googling for the file?

-- 
Sincerely etc.
Christopher Sawtell

NB. This PC runs Linux. If you find a virus apparently from me,
it has forged the e-mail headers on someone else's machine.
Please do not notify me when this occurs. Thanks.
Script started on Tue Nov  4 16:30:27 2003
[01;[EMAIL PROTECTED] chris $ ]31;~]31;~ftp a ftp.auckland.ac.nz
Connected to ftp.auckland.ac.nz.
220 University of Auckland FTP Server
Name (ftp.auckland.ac.nz:chris): anonymous. 
500 AUTH not understood
SSL not available
331 Anonymous login ok, send your complete email address as your password.
Password:
230 Anonymous login ok, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls pub pub.auckland.ls
output to local-file: pub.auckland.ls? y
200 PORT command successful
150 Opening ASCII mode data connection for file list
226 Transfer complete.
ftp> close
221 Goodbye.
ftp> bye
[01;[EMAIL PROTECTED] chris $ ]31;~]31;~
[01;[EMAIL PROTECTED] chris $ ]31;~]31;~
Script done on Tue Nov  4 16:32:28 2003
dr-xr-xr-x  21 root     root         4096 Aug 15 02:11 .
drwxr-xr-x   5 root     root         4096 May 30 02:48 ..
-rw-r--r--   1 root     root          453 May 16  2002 .message
lrwxrwxrwx   1 root     daemon          4 Mar 20  2003 Boot -> boot
drw-------   4 root     daemon       4096 Apr  4  1997 Documentation
lrwxrwxrwx   1 root     root           12 Mar 20  2003 Netaccount -> ./netaccount
drw-------   2 root     daemon       4096 Mar 20  2003 boot
drwxr-xr-x   4 ftpowner ftp          4096 Oct 23  2002 docs
drw-------   5 ftpowner ftp          4096 May 15  2002 ethics
drwxrwxrwx   2 root     30079        4096 Dec 27  2002 fb
drwxr-xr-x 235 root     root         8192 Aug  3 14:16 gnu
drwxr-xr-x   4 nevil    ftp          4096 Mar 20  2003 iawg
drwxr-xr-x   2 root     daemon     249856 Apr  4  1998 internet-drafts
lrwxrwxrwx   1 root     root            8 Mar 20  2003 linux -> ../linux
drwx------   2 root     root         4096 Apr  4  1997 lost+found
drwxrwxr-x   9 65540    995          4096 Oct  8  2002 netaccount
drw-------   2 ftpowner ftp          4096 May 17  2002 news
lrwxrwxrwx   1 root     root           13 Mar 20  2003 os -> ./software/os
drw-------   5 15045    daemon       4096 Mar 13  2002 pegasus
drwxr-xr-x   3 root     daemon       4096 Apr  4  1997 perl
drw-------   2 root     daemon       4096 Dec 16  1999 pickup
drwxrwxr-x   5 root     root         4096 Nov 14  2002 putty
drwxrwxr-x   3 994      994         53248 Sep 13  2002 rfc
lrwxrwxrwx   1 root     daemon          9 Mar 20  2003 rtfm -> iawg/rtfm
drwxr-xr-x  10 root     root         4096 Nov  1  2002 software
lrwxrwxrwx   1 root     root           22 Mar 20  2003 streamworks -> 
./software/streamworks
drwxr-xr-x   4 root     root         4096 Jan  6  2003 sunfreeware

Reply via email to