FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 01-26-2010, 05:24 PM
Alan Hoffmeister
 
Default Auto exit lftp on bash script

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

Thx!
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 01-26-2010, 05:54 PM
Akemi Yagi
 
Default Auto exit lftp on bash script

On Tue, Jan 26, 2010 at 10:24 AM, Alan Hoffmeister <alangtk@gmail.com> wrote:
> 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

Try format that looks like:

lftp -e 'open <somewhere> && mirror <something> && exit'

Akemi
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 01-26-2010, 05:56 PM
Alan Hoffmeister
 
Default Auto exit lftp on bash script

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...
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 11:12 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org