The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Windows & DOS: Issues & Discussions
Google UNIX.COM



Thread: FTP using SFU
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-27-2007
Ygor's Avatar
Ygor Ygor is offline
Moderator
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,226
If you supply two arguments to ls, the second one is the local filename to store the output. From man ftp...
Code:
    ls [remote-directory] [local-file]
                 Print a listing of the contents of a directory on the remote
                 machine.  The listing includes any system-dependent informa-
                 tion that the server chooses to include; for example, most
                 UNIX systems will produce output from the command 'ls -l'.
                 (See also nlist.)  If remote-directory is left unspecified,
                 the current working directory is used.  If interactive
                 prompting is on, ftp will prompt the user to verify that the
                 last argument is indeed the target local file for receiving
                 ls output.  If no local file is specified, or if local-file
                 is '-', the output is sent to the terminal.
Reply With Quote