07-12-2009
|
#16
|
|
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
|
You can also create a batch script and do this via CURL.
Accessing the ftp server:
curl ftp://HOST_NAME --user usr:pwd
Downloading a file from the server:
curl ftp://HOST_NAME/FOLDER/FILE.zip --user myname:mypassword -o DOWNLOADED_FILE_NAME.zip
Uploading a file:
curl -T FILE.zip ftp://HOST_NAME/FOLDER/ --user usr:pwd
Listing files in sub directories
curl ftp://HOST_NAME/FOLDER/ --user usr:pwd
Listing directories, hiding curl progress bar and using grep to filter
curl ftp://HOST_NAME --user usr:pwd -s | grep ^d
|
|
|