Command line / script usage?
Moderator: Project members
-
- 504 Command not implemented
- Posts: 7
- Joined: 2008-12-04 20:34
- First name: Frank
- Last name: Garber
Command line / script usage?
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
All help is appreciated.
Thanks,
F
-
- 504 Command not implemented
- Posts: 7
- Joined: 2008-12-04 20:34
- First name: Frank
- Last name: Garber
Re: Command line / script usage?
Ouch! Nice short and concise replybotg wrote:No.
Are there any place to do so?
Do you know of any DOS command lined ftp clients that support long filenames and recursion?
Re: Command line / script usage?
lftp, runs fine with cygwin.
-
- 504 Command not implemented
- Posts: 7
- Joined: 2008-12-04 20:34
- First name: Frank
- Last name: Garber
Re: Command line / script usage?
That's awfully heavy weight for my needs. Does the FZ client expose an API?
Re: Command line / script usage?
Unfortunately no. And such an API would be even more heavyweightgarberfc wrote:That's awfully heavy weight for my needs. Does the FZ client expose an API?
-
- 226 Transfer OK
- Posts: 619
- Joined: 2005-11-02 06:41
-
- 504 Command not implemented
- Posts: 7
- Joined: 2008-12-04 20:34
- First name: Frank
- Last name: Garber
Re: Command line / script usage?
Yes, thanks for the DOS refresher.da chicken wrote:Cheap method:
http://support.microsoft.com/kb/96269
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
-
- 226 Transfer OK
- Posts: 619
- Joined: 2005-11-02 06:41
Re: Command line / script usage?
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.
-
- 504 Command not implemented
- Posts: 7
- Joined: 2008-12-04 20:34
- First name: Frank
- Last name: Garber
Re: Command line / script usage?
Yes, but it won't download the files recursively. It actually attempts and fails to download the directory itself...
-
- 226 Transfer OK
- Posts: 619
- Joined: 2005-11-02 06:41
Re: Command line / script usage?
Use wget. Use the --timestamping flag if you only want to download newer files.garberfc wrote:Yes, but it won't download the files recursively. It actually attempts and fails to download the directory itself...
Or try ncftp and use the batch commands.
-
- 504 Command not implemented
- Posts: 7
- Joined: 2008-12-04 20:34
- First name: Frank
- Last name: Garber
Re: Command line / script usage?
That's perfect! Just what I was looking for. I'll try it later at home...da chicken wrote:Use wget. Use the --timestamping flag if you only want to download newer files.garberfc wrote:Yes, but it won't download the files recursively. It actually attempts and fails to download the directory itself...
Or try ncftp and use the batch commands.
Thanks!!!
-
- 500 Command not understood
- Posts: 2
- Joined: 2009-01-13 17:25
- First name: Chris
- Last name: Estes
Re: Command line / script usage?
That would be perfect, but does anyone know a way to do this with sftp?
Re: Command line / script usage?
Try WinSCP.cestes wrote:That would be perfect, but does anyone know a way to do this with sftp?
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
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
-
- 504 Command not implemented
- Posts: 7
- Joined: 2008-12-04 20:34
- First name: Frank
- Last name: Garber
Re: Command line / script usage?
WinSCP is a great product as well.boco wrote:Try WinSCP.cestes wrote:That would be perfect, but does anyone know a way to do this with sftp?