Command line / script usage?

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Message
Author
garberfc
504 Command not implemented
Posts: 7
Joined: 2008-12-04 20:34
First name: Frank
Last name: Garber

Command line / script usage?

#1 Post by garberfc » 2008-12-05 15:03

Is there any means of using the client as a command line tool? I have a need to have a script to periodically sweep/download from a specific location. I'd rather not have to fire up the client and navigate/select the files of interest.

All help is appreciated.

Thanks,

F

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Command line / script usage?

#2 Post by botg » 2008-12-05 15:38

No.

garberfc
504 Command not implemented
Posts: 7
Joined: 2008-12-04 20:34
First name: Frank
Last name: Garber

Re: Command line / script usage?

#3 Post by garberfc » 2008-12-05 19:25

botg wrote:No.
Ouch! Nice short and concise reply :|

Are there any place to do so?

Do you know of any DOS command lined ftp clients that support long filenames and recursion?

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Command line / script usage?

#4 Post by botg » 2008-12-05 19:57

lftp, runs fine with cygwin.

garberfc
504 Command not implemented
Posts: 7
Joined: 2008-12-04 20:34
First name: Frank
Last name: Garber

Re: Command line / script usage?

#5 Post by garberfc » 2008-12-09 02:18

That's awfully heavy weight for my needs. Does the FZ client expose an API?

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Command line / script usage?

#6 Post by botg » 2008-12-09 07:24

garberfc wrote:That's awfully heavy weight for my needs. Does the FZ client expose an API?
Unfortunately no. And such an API would be even more heavyweight ;)

da chicken
226 Transfer OK
Posts: 619
Joined: 2005-11-02 06:41

Re: Command line / script usage?

#7 Post by da chicken » 2008-12-09 15:40


garberfc
504 Command not implemented
Posts: 7
Joined: 2008-12-04 20:34
First name: Frank
Last name: Garber

Re: Command line / script usage?

#8 Post by garberfc » 2008-12-10 00:33

da chicken wrote:Cheap method:
http://support.microsoft.com/kb/96269
Yes, thanks for the DOS refresher.

The problem with the DOS FTP program is that it will not do a recursive get. I want to point it at a directory and download the entire tree.

Thanks,

F

da chicken
226 Transfer OK
Posts: 619
Joined: 2005-11-02 06:41

Re: Command line / script usage?

#9 Post by da chicken » 2008-12-10 04:49

Use the MGET (multi-get) command. Add -i to the command line to turn off interactive prompts that appear with the mget and mput commands.

Code: Select all

C:\>ftp --help

Transfers files to and from a computer running an FTP server service
(sometimes called a daemon). Ftp can be used interactively.

FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-w:windowsize] [-A] [host]

  -v             Suppresses display of remote server responses.
  -n             Suppresses auto-login upon initial connection.
  -i             Turns off interactive prompting during multiple file
                 transfers.
  -d             Enables debugging.
  -g             Disables filename globbing (see GLOB command).
  -s:filename    Specifies a text file containing FTP commands; the
                 commands will automatically run after FTP starts.
  -a             Use any local interface when binding data connection.
  -A             login as anonymous.
  -w:buffersize  Overrides the default transfer buffer size of 4096.
  host           Specifies the host name or IP address of the remote
                 host to connect to.

Notes:
  - mget and mput commands take y/n/q for yes/no/quit.
  - Use Control-C to abort commands.

garberfc
504 Command not implemented
Posts: 7
Joined: 2008-12-04 20:34
First name: Frank
Last name: Garber

Re: Command line / script usage?

#10 Post by garberfc » 2008-12-30 21:10

Yes, but it won't download the files recursively. It actually attempts and fails to download the directory itself...

da chicken
226 Transfer OK
Posts: 619
Joined: 2005-11-02 06:41

Re: Command line / script usage?

#11 Post by da chicken » 2008-12-31 11:39

garberfc wrote:Yes, but it won't download the files recursively. It actually attempts and fails to download the directory itself...
Use wget. Use the --timestamping flag if you only want to download newer files.

Or try ncftp and use the batch commands.

garberfc
504 Command not implemented
Posts: 7
Joined: 2008-12-04 20:34
First name: Frank
Last name: Garber

Re: Command line / script usage?

#12 Post by garberfc » 2008-12-31 14:09

da chicken wrote:
garberfc wrote:Yes, but it won't download the files recursively. It actually attempts and fails to download the directory itself...
Use wget. Use the --timestamping flag if you only want to download newer files.

Or try ncftp and use the batch commands.
That's perfect! Just what I was looking for. I'll try it later at home...

Thanks!!! :mrgreen:

cestes
500 Command not understood
Posts: 2
Joined: 2009-01-13 17:25
First name: Chris
Last name: Estes

Re: Command line / script usage?

#13 Post by cestes » 2009-01-13 17:26

That would be perfect, but does anyone know a way to do this with sftp?

User avatar
boco
Contributor
Posts: 26940
Joined: 2006-05-01 03:28
Location: Germany

Re: Command line / script usage?

#14 Post by boco » 2009-01-13 20:31

cestes wrote:That would be perfect, but does anyone know a way to do this with sftp?
Try WinSCP.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

garberfc
504 Command not implemented
Posts: 7
Joined: 2008-12-04 20:34
First name: Frank
Last name: Garber

Re: Command line / script usage?

#15 Post by garberfc » 2009-01-13 23:39

boco wrote:
cestes wrote:That would be perfect, but does anyone know a way to do this with sftp?
Try WinSCP.
WinSCP is a great product as well.

Post Reply