[CentOS] Auto exit lftp on bash script

Henrik hc at henrikch.dk
Wed Jan 27 15:56:31 UTC 2010


On 2010-01-26 19:24, Alan Hoffmeister wrote:
> #####################
> #lftp will make the backup
> lftp -u user,password -e "mirror --reverse --delete --only-newer
> --verbose /var/bkp /test_bkp" somehost.com>>  $LOGFILE
>
>    
;quit does work in my script:
lftp -e 'put 'some.file';quit' -p 21 -u user,pass 1.1.1.1



More information about the CentOS mailing list