-   Linux - Software (
-   -   Save ftp directory listing into a file (

Vitalie Ciubotaru 06-30-2007 04:56 PM

Save ftp directory listing into a file
Hi there,

How can one get the listing of a remote directory [say, ftp site] piped into a local file.
When it's a local directory, I just do

ls | tee filename

Vitalie CIUBOTARU 06-30-2007 06:37 PM

There's a short simple answer (and I'm guessing someone will jump in at any moment and give it), but the most useful answer I can give is this.

man is your friend.

At the command prompt, enter


man ftp
and all will be revealed.

For more output (and input!) flexibility, enter this at the command prompt:


man script
man expect    # if you're really adventurous

Hope this helps.

All times are GMT -5. The time now is 10:57 AM.