Reputation: 669
On server1, I have a file in /home/example.zip. On server2, I need to basically do the equivalent of:
wget http://server1.com/example.zip
But of course via ftp. I of course have the username/password/host name.
How can this be achieved?
Upvotes: 0
Views: 178
Reputation: 7563
You can wget a ftp file.
For example:
wget ftp://gnjilux.cc.fer.hr/welcome.msg
Upvotes: 0
Reputation: 39733
The man page of wget says:
--ftp-user=username
--ftp-password=password
So you can do it like this:
wget --ftp-user=xxxx --ftp-password=yyyy ftp://gnjilux.cc.fer.hr/welcome.msg
Upvotes: 4