Re: [aclug-L] Scropt help
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
This is something I've been researching as part of a project we are doing at
work. I just thought I'd add a little about the lftp utility.
It wasnt easy to get working because its use of the readline library, on my
Caldera system. I didn't ever find a binary to download. I did get it to
cleanly compile on Redhat, though, and I've got an .rpm if you would like it.
lftp looks really good for several reasons: It doesn't just give up if the
script fails. It will keep retrying until the file is there. It will start
where it left off (useful for large transfers). It can be set to delete the
file after (and only after) a successful transmission. Lastly, it uses
bash-like syntax. ex: "get ftp://blah.com/file.txt & get
ftp://blah.com/file2.txt &" would get two files, each in the background. If you
log out, the transfer process continues.
On 17-Aug-99 Jonathan Hall wrote:
> There is at least one FTP client designed specifically for this. lftp is
> the name of it if I recall (but don't quote me on that!). You might
> search sunsite for lftp, or just for ftp clients in general. I had a need
> for a scripted FTP transfer I once, and that's what I used.
>
>
> On Mon, 16 Aug 1999, Wayne White wrote:
>
>> I would like to automate the uploading of a file to a ftp
>> site with a script.
>>
>> I have worked out how to generate the file, but can't figure
>> out how to connect to the ftp site, send username and password
>> and then execute the commands to upload the file and disconnect.
>>
>> I'm suspect that a shell script could handle this. I've been able
>> to script the connection, but how would you then get it to send
>> the subsequent required informatin and commands.
>>
>> Is there a how-to that would explain this? If not could someone
>> get me looking in the right direction for the knowledge I need?
>>
>> Thanks,
>>
>> Wayne
>>
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> Just allow a fragment of your life. . .
>> to wander free.
>> E.J.
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Jonathan Hall * jonhall@xxxxxxxxxxxx * PGP public key available
> Systems Admin, Future Internet Services; Goessel, KS * (316) 367-2487
> http://www.futureks.net * PGP Key ID: FE 00 FD 51
> -= Running Debian GNU/Linux 2.0, kernel 2.0.36 =-
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
----------------------------------
E-Mail: tdoubrav@xxxxxxxx
Date: 19-Aug-99
Time: 21:30:22
This message was sent by XFMail
----------------------------------
- [aclug-L] Scropt help, Wayne White, 1999/08/16
- Re: [aclug-L] Scropt help, Dale W Hodge, 1999/08/16
- Re: [aclug-L] Scropt help, Jeff, 1999/08/17
- Re: [aclug-L] Scropt help, Sanjay Dhar, 1999/08/17
- Re: [aclug-L] Scropt help, Clint A. Brubakken, 1999/08/17
|
|