Re: [SLE] automated file upload?
At 7/1/01 12:19:00 PM, you wrote:
Is there a way to automate the upload of files to a host? For example the wget program can be used in a script to download via ftp -- is there something like wput that can be used in a script to upload files?
There are a bunch of perl modules for automating ftp. I'm sure there is a free script out there somewhere. "Curl" is a commandline program that does ftp, I'm sure you could call it from a script. It's at http://curl.haxx.se/ NetZero Platinum No Banner Ads and Unlimited Access Sign Up Today - Only $9.95 per month! http://www.netzero.net
On Sun, Jul 01, 2001 at 02:33:53PM -0500, zentara wrote:
At 7/1/01 12:19:00 PM, you wrote:
Is there a way to automate the upload of files to a host? For example the wget program can be used in a script to download via ftp -- is there something like wput that can be used in a script to upload files?
There are a bunch of perl modules for automating ftp. I'm sure there is a free script out there somewhere.
"Curl" is a commandline program that does ftp, I'm sure you could call it from a script.
It's at http://curl.haxx.se/
Thanks, I'll look into it. But, I found that at least for the simple needs I have the following works well enough: #!/bin/bash # # upload a single file to my ftp site cat > ftpscript << EOF cd mydirectory put myfile.txt bye EOF cat ftpscript | ftp ftp.my.site.com >/dev/null 2>&1 Automation of the ftp logon is via use of a ".netrc" file. -- ____________________________________________________________________ Robert Paulsen paulsen@texas.net
participants (2)
-
Robert C. Paulsen Jr.
-
zentara