[CentOS] Auto exit lftp on bash script

nate centos at linuxpowered.net
Tue Jan 26 19:06:01 UTC 2010

Alan Hoffmeister wrote:
> Em 26/01/2010 16:54, Akemi Yagi escreveu:
>> lftp -u user,password -e "mirror --reverse --delete --only-newer
>> >  --verbose /var/bkp /test_bkp" somehost.com
> Already tryed the && exit, but no sucess...

try ncftpput instead?


"The purpose of ncftpput is to do file transfers from the
command-line without entering an interactive shell. This lets
you write shell scripts or other unattended processes that can
do FTP. It is also useful for advanced users who want to send
files from the shell command line without entering an interactive
FTP program such as ncftp. "


More information about the CentOS mailing list