[CentOS] Auto exit lftp on bash script

Benjamin Donnachie benjamin at py-soft.co.uk
Wed Jan 27 17:55:12 UTC 2010


2010/1/27 Alan Hoffmeister <alangtk at gmail.com>:
> lftp -e  "mirror --reverse --delete --only-newer --verbose /var/bkp
> /test_bkp ;quit" -u user,password somehost.com

Read the manpage.  Replace -e in your original command line with -c.

Ben



More information about the CentOS mailing list