Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recursive FTP from the command line

Status
Not open for further replies.

tviman

Programmer
Jul 25, 2002
2,123
US
I hope someone can help me. I need to FTP several files from a unix server - and possibly directories within directories - from the command line. I haven't been able to do this with the FTP client that comes with WinXP Pro. Does anyone know how to do this or know of a command line utility that can?

Thanks for your indulgence.
 
I use FileZilla. It's free... it works... it's fast.



Just my 2¢

"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."

--Greg
 
Thanks Greg,

I, too, use Filezilla but in this case the process must be run from the command line.
 
Then I would look into the command mget

I don't remember if mget does folders or just multiple files....



Just my 2¢

"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."

--Greg
 
First, let me ask <b>why</b> it does not work from the command line with the built in FTP client? Is there an error? The built in ftp client is functionally fine.
 
I don't know of a basic command line client which will allow recursive (ie directory structure) transfers.

In fact, if you study what Filezilla or any other GUI client does at the FTP command level, it issues multiple commands to accomplish the desired result.

Even mget and mput only work within the current directory and have the limitation of stopping and asking whther or not to transfer each file which satisfies the mask.

There are products out there that allow ftp scripting. For exxample Sysax ( which has a free personal version, a professional and an enterprise and does allow transferring directory structures, secure file transfers and scheduling etc, at the cost of learning a scripting language.

Jock
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top