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?
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?
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