In my last post, I discovered the
following tutorial:
lftp: a better FTP client
In this post, I'd like to explore the
idea of scripting a little bit.
Currently, I'm using lftp in this
form:
$ lftp -u username,password site-url
I'd like to go beyond this. I'd like to
switch to this form:
$ lftp -f lftp-script
I've been inspired by the above tutorial
to try this. It seems to me there are
several advantages to doing so:
- I won't have to remember how I
did it to do it again - I can take commands that I've
been typing interactively and
turn them into a script. This
saves typing. - I can execute precisely the
same agenda, such a site backup,
without fail each and every time
So it looks like the next thing I'll
be looking into is writing lftp scripts.
It's funny. I've been using lftp for
years but have not explored this. Or
maybe I did explore it but for some
reason never got it to work.
In any case, I'm finding that it is
possible to use these great utilities
like lftp for years and not
fully explore their potential.
Time to wake up and look around. I've
been in a deep sleep.
Ed Abbott