How about wput to send files to the server?
This one is simple. Every time you want to send files to the server using a FTP connection, you can use wput.
If you are in front of an Ubuntu box and don’t have it, just install it:
sudo aptitude install wput
Ah, yes! You can download a Windows version on this site at sourceforge.
To send all files from a local directory to your server you can make this use of the command:
wput --background myfiles ftp://username:password@hostname/recipient-folder/
Where the background option frees your terminal from the verbosity of the command and allows you to do other stuff here. Don’t forget to substitute the other parameters with the correct information. Where:
- myfiles: are the file(s) you want to upload. You can surely use things like: *.php or name several files separated by spaces.
- username and password: you should know what to put here
- recipient-folder: a folder where the files will be sent. If you omit it, they will be written on the root.
Since wput logs everything by default on a local file called wput-log you can check if it all worked fine with cat:
cat wput-log | grep --context 2 -i fail
The command line above should show the files which wput failed to send up to the server. Try also typing
man wput
to know a little more about and have some more fun.