Alexander, thanks for your excellent ftp program.  I use it for
scripting operations, and have a couple of questions.

1. Is there any way define a variable in a script and then use it.  For
example, say I want to download a bunch of files foo1, foo2, foo3, etc.
I would like to define the variable 'foo' and then have the script
download those files.  Later, I may want to download bar1, bar2, bar3,
etc.  I would like to be able to just change one line rather than many.

2. Is there any way to pass a variable to LFTP on the command line?  For
example lftp file=foo on the command line, and then use 'file' in the
script.

3. Another similar application to #2 is to pass the URL to connect to as
an argument on the command line for use in the script.  I tried passing
the URL on the command line, but it seems that you can't both specify a
script and a site on the command line, in other words "lftp
myftpsite.com -f script_file" doesn't work.

Thanks for your help!

----------
Jon Harris, Sr. Design Engineer, Symetrix, Inc.
[email protected]

Reply via email to