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?
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!