Re: [CentOS] Auto exit lftp on bash script

2010-01-27 Thread Henrik
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

Re: [CentOS] Auto exit lftp on bash script

2010-01-27 Thread Alan Hoffmeister
Em 27/01/2010 13:56, Henrik escreveu: 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:

Re: [CentOS] Auto exit lftp on bash script

2010-01-27 Thread Benjamin Donnachie
2010/1/27 Alan Hoffmeister alan...@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 ___ CentOS mailing

[CentOS] Auto exit lftp on bash script

2010-01-26 Thread Alan Hoffmeister
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 #

Re: [CentOS] Auto exit lftp on bash script

2010-01-26 Thread Akemi Yagi
On Tue, Jan 26, 2010 at 10:24 AM, Alan Hoffmeister alan...@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

Re: [CentOS] Auto exit lftp on bash script

2010-01-26 Thread Alan Hoffmeister
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

Re: [CentOS] Auto exit lftp on bash script

2010-01-26 Thread nate
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? http://www.ncftp.com/ncftp/doc/ncftpput.html The

Re: [CentOS] Auto exit lftp on bash script

2010-01-26 Thread Alan Hoffmeister
try ncftpput instead? http://www.ncftp.com/ncftp/doc/ncftpput.html 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

Re: [CentOS] Auto exit lftp on bash script

2010-01-26 Thread Benjamin Donnachie
2010/1/26 Alan Hoffmeister alan...@gmail.com: how can I exit lftp and finish the bash? Use the -c flag instead? From the manpage: -c commands Execute the given commands and exit. Commands can be separated with a semicolon, `' or `||'. Ben

Re: [CentOS] Auto exit lftp on bash script

2010-01-26 Thread Les Mikesell
On 1/26/2010 1:11 PM, Alan Hoffmeister wrote: try ncftpput instead? http://www.ncftp.com/ncftp/doc/ncftpput.html 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