LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Save ftp directory listing into a file (https://www.linuxquestions.org/questions/linux-software-2/save-ftp-directory-listing-into-a-file-565694/)

Vitalie Ciubotaru 06-30-2007 05: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
Code:

ls | tee filename
regards,

Vitalie CIUBOTARU

wjevans_7d1@yahoo.co 06-30-2007 07: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

Code:

man ftp
and all will be revealed.

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

Code:

man script
man expect    # if you're really adventurous

Hope this helps.


All times are GMT -5. The time now is 01:03 AM.