[CLUG] Batch ftp
Donncha O Caoimh
donncha.ocaoimh at tradesignals.com
Thu Jan 20 09:19:21 GMT 2000
You could look at lftp or ncftp. I seem to remember catting a file of
commands to ncftp to upload some files at one stage.
Or, use expect to automate it.
Run "autoexpect" and do the upload as normal, then CTRL-D and you have
all your commands stored in a file. You'll probably have to edit the
resulting expect file, but that's fairly trivial.
"man 5 expect" I think.
Peter Flynn wrote:
> Have anyone got a pointer to a program which will perform FTP
> under script control (eg from a cron job)?
> I need to retrieve files on a timed basis, and it's all been done on a
> VAX so far, where a .com file can easily pass subcommands to FTP. But
> regular Unix FTP only accepts command input from the tty: you can't
> redirect it to come from stdin.
> I've tried the W3C commandline retriever (flaky); I've tried Lynx
> (uncontrollable); and dog only does HTTP not FTP. Ideas?
More information about the Cork