When writing scripts for lftp, is it possible to have them take
an argument? For example:
testscript.lftp:
cd $1
!mkdir /tmp/$1
mget -O /tmp/$1 *.tbz2
lftp: mirrors.something.com>source testscript.lftp daily_patches/
where the $1 would translate into the first argument and $2 the second, etc.
Also, I would like to know if its possible to preform an action for each
slot that you have defined. So if I have say 5 slots defined, can I run
a script that will do an action for each one?
pseudocode:
for each slot
do
cd /tmp
mdel *
done
...
Thanks,
Justin