On Tue, Nov 20, 2007 at 08:11:33AM +1100, Terry Allen wrote:
 lftp -u lftptestuser,test123 -e "mirror -n /
 /Users/lftptestuser/lftptest --delete" testftp.com

        It mirrors, will delete non-existent files & mirror new ones,
 but after completion, it sits still logged in - can anyone tell me
 what I need to add to the end of this command to exit the lftp state
 please? Many thanks for any assistance.

add ;exit to the command after -e option, or use -c option:

lftp -c "mirror -ne ftp://lftptestuser:[EMAIL PROTECTED]/%2F /Users/lftptestuser/lftptest"

--
   Alexander..

Hi again,
Many thanks Alexander - that did the trick. I had also found a script after some searching which when modified, did the job nicely. I will send an unlrealted post shortly - thanks for the reply.
--

Bye for now, Terry Allen ___________________________________________________________________
hEARd

Postal Address:
        hEARd, 26B Glenning Rd, Glenning Valley, NSW 2261, Australia
Internet -
        WWW: http://heard.com.au http://itavservices.com
EMAIL: [EMAIL PROTECTED]
Phone: Australia - 02 4388 1400 / International - + 61 2 43881400
Mobile: Australia - 04 28881400 / International - 61 4 28881400
-----------------------------------------------
Non profit promotion for new music - since 1994
-----------------------------------------------

Reply via email to