|
|
A way to add username and password to script
Both great tips.
A way to add username and password to script
If you mean a flat directory (no hierarchy within), then you can just issue the prompt directive to turn off interactive mode, and then use mput * to transfer all files (remember to be in binary mode unless you know they're all text;)
For a directory containing hierarchy, I know when downloading that some ftp servers support "archive mode" where they will archive on-the-fly if you request a directory name using an archive suffix. But I don't know how to tell an ftp server to unpack an archive file after uploading, nor how to upload hierarchically (unless you explicitly do mkdir etc.). rdist, rsync, scp -pr, rcp -pr work though, assuming you have remote login rights;
A way to add username and password to script
I guess wu-ftpd handles on-the-fly archiving via the ftpconversions definitions; Larry.
A way to add username and password to script
For uploading, check this out too -- (curl does uploading;)
In curl 7.10.8 and later, you can specify one -T for each URL on
the command line. Each -T + URL pair specifies what to upload
and to where. curl also supports "globbing" of the -T argument,
meaning that you can upload multiple files to a single URL by
using the same URL globbing style supported in the URL, like
this:
curl -T "{file1,file2}" http://www.uploadtothissite.com
or even
curl -T "img[1-1000].png" ftp://ftp.picturemania.com/upload/
Larry.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:Hints1 new Hints in the last 24 hoursComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|