Auto exit lftp on bash script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxxxx:~>
how can I exit lftp and finish the bash?

Thx!
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux