tags:

views:

41

answers:

3

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?

A: 

You can wget a ftp file.

For example:

wget ftp://gnjilux.cc.fer.hr/welcome.msg
Andrew Keith
A: 

Try this

wget ftp://username:[email protected]/example.zip
r-dub
+4  A: 

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
tangens