Mi7ai
Mi7ai

Reputation: 27

How to get any file from ftp server and put it into specific local folder with bash?

I am stuck on this :(. I want to download a file from a frp server and put in into a specific folder, but I only manage to download it...

Conection:

ftp ftp.rediris.es

Get file:

get "fileName" 

I've tried something like:

get "fileName" C/Images

but it doesn't really work.

Thank you!

Upvotes: 0

Views: 2337

Answers (1)

vmachan
vmachan

Reputation: 1682

The following should work

get "fileName" "C:\Images\fileName"

You can replace "C:\Images\" with whatever location you want as long as you put the correct and full path name. The above example assumes you are downloading to a Windows machine. On a UNIX/Linux machine the following example would look like below

get "fileName" "/user/Images/fileName"

Hope this helps

Upvotes: 1

Related Questions