[CentOS] Auto exit lftp on bash script

Alan Hoffmeister alangtk at gmail.com
Tue Jan 26 18:24:52 UTC 2010


Hello again!

I have this piece od code:

#####################
#lftp will make the backup
lftp -u user,password -e "mirror --reverse --delete --only-newer 
--verbose /var/bkp /test_bkp" somehost.com >> $LOGFILE

# end log file
date >> $LOGFILE
echo "Backup Completo!" >> $LOGFILE
#####################

Everything is fine, but the bash scrip dosn't complete after lftp upload 
all files...
It hungs in:
lftp user at somehost.com:~>
how can I exit lftp and finish the bash?

Thx!


More information about the CentOS mailing list