> What I want to do is work with some variables in a lftp script or
> passing them to the lftp prompt. For instance: instead of CD'ing to a
> dir on the remote site, I would like to do the following
>
> BACKUP=/home/backup/
> Lftp open mybackupprovider; cd $BACKUP; put backup.tar.gz; bye
>
> Is this currently possible, and if so, how do I do this?
You'd have to script that. Something like this:
| #!/bin/bash
| BACKUP=/home/backup
|
| TMPFILE=`mktemp`
| cat <<EOC >${TMPFILE}
| open mybackupprovider
| cd $BACKUP
| put backup.tar.gz
| EOC
|
| lftp -c ${TMPFILE}
|
| rm ${TMPFILE}
Should work, i suppose. :)
-Sndr.
--
| You will experience a strong urge to do good; but it will pass.
| 4096R/20CC6CD2 - 6D40 1A20 B9AA 87D4 84C7 FBD6 F3A9 9442 20CC 6CD2