Alexander V. Lukyanov | 3 Apr 2006 06:35
Picon
Gravatar

Re: typo in configure.ac of lftp 3.4.3

On Thu, Mar 30, 2006 at 04:51:42PM -0800, Roy T. Fielding wrote:
> % egrep -n "if text" configure.ac
> 429:   if text x$ac_cv_header_sys_poll_h = xno; then
>
> should be
> 429:   if test x$ac_cv_header_sys_poll_h = xno; then

Thanks! I have fixed it.

--
   Alexander.

Alexander V. Lukyanov | 3 Apr 2006 06:33
Picon
Gravatar

Re: lftp

On Sun, Apr 02, 2006 at 03:57:58PM +0200, HaXix wrote:
> is that possible to configure lftp for, when it mirroring, to specifie
> if file like *.xxx must be put in first ?

Yes, see mirror:order setting.

--
   Alexander.                      | http://www.yars.free.net/~lav/

Petr Ostadal | 3 Apr 2006 16:19
Picon

how can I connect to server before login

Hi,

I have problem, when I using common ftp compatible with old unix ftp 
client I can connect to server before login and get message from server, 
e.g.

~> pftp ftp.suse.com
Connected to ftp.suse.com.
220 "Welcome to the SUSE ftp server: Please login as user 'ftp'"
Name (ftp.suse.com:postadal): 

When I use lftp I don't know how get these infromation, before login ;(.

	Petr

--
Best Regards,

Petr Ostadal
Software Developer
---------------------------------------------------------------------
SuSE CR, s.r.o. 			e-mail: postadal <at> suse.cz
Drahobejlova 27 			tel:	+420 296 542 382
190 00 Praha 9 				fax:	+420 296 542 374
Czech Republic 				http://www.suse.cz

Alexander V. Lukyanov | 6 Apr 2006 13:01
Picon
Gravatar

Re: at kill all

On Fri, Mar 31, 2006 at 04:13:02PM +0200, Michael Petuschak wrote:
> I tried different things and it looks like setting
> 
> set cmd:fail-exit yes
> 
> and then using the same
> 
> at 15:00 -- kill all &
> 
> kills the whole script at 15:00. However I'm not sure whether this will work
> in all cases (get, mirror) and whether it's a good idea to do it like this
> at all...

It has a side effect of terminating lftp when any command returns non-zero status.
You can also use: at 15:00 -- shell kill $PPID &

I have released lftp version 3.4.4, where you can do this:

    at 15:00 -- exit top kill &

It kills all jobs running and makes top level shell (lftp's internal one) exit.

--

-- 
   Alexander.                      | http://www.yars.free.net/~lav/   

Michael Petuschak | 6 Apr 2006 13:26

Re: at kill all

Hi Alexander,  

Thanks a lot for the "exit top kill"!

BTW, is there a list of variables I can use in a script (like $PPID)?

Also I noticed another strange side effect when using "set cmd:fail-exit yes":

--------------------------------
set cmd:fail-exit yes
set cmd:move-background no
at 15:00 -- kill all &

open http://myhost.com
get -c file1
--------------------------------

the script above sometimes produces the following error message:

get: Fatal error: max-retries exceeded
[12345] Moving to background to complete transfers...

I belive lftp is not actually moving to background at this point, but just
exiting, i.e. "set cmd:fail-exit yes" works as it should, however a
misleading message is printed.

FYI

 > You can also use: at 15:00 -- shell kill $PPID &
 > 
(Continue reading)

Alexander V. Lukyanov | 6 Apr 2006 14:39
Picon
Gravatar

Re: at kill all

On Thu, Apr 06, 2006 at 01:26:35PM +0200, Michael Petuschak wrote:
> BTW, is there a list of variables I can use in a script (like $PPID)?

It is bash variable.

> Also I noticed another strange side effect when using "set cmd:fail-exit yes":
> the script above sometimes produces the following error message:
> 
> get: Fatal error: max-retries exceeded
> [12345] Moving to background to complete transfers...

It moves to background to complete that `at 15:00' command. I'm not sure
how to handle that situation. On one hand, there is a failed command and
fail-exit is true, so that lftp has to exit, OTOH there are backgrounded
jobs.

--

-- 
   Alexander..

Michael Petuschak | 6 Apr 2006 15:36

Re: at kill all

Hi Alexander,  

 >> get: Fatal error: max-retries exceeded
 >> [12345] Moving to background to complete transfers...
 > 
 > It moves to background to complete that `at 15:00' command. I'm not sure
 > how to handle that situation. On one hand, there is a failed command and
 > fail-exit is true, so that lftp has to exit, OTOH there are backgrounded
 > jobs.

... OTOH there is "cmd:move-background no".

thanks for looking into this, anyway.

--

-- 
Michael

Marco | 9 Apr 2006 04:16
Picon

Re: Exclude remote files from deletion

On 4/9/06, Marco <brbromo <at> gmail.com> wrote:
> Is it possible?
I answer myself: "Just use -X directoryname/ ..."

A few minutes ago I forgot the final slash and had a panic attack.
Maybe a good sleep could help me.

Bye,
Marco

"All work and no play makes jack a dull boy"

Marco | 9 Apr 2006 03:55
Picon

Exclude remote files from deletion

I would like to use lftp in reverse mode with --delete-first, but
excluding some remote directories from deletion.

Is it possible?

Thanks,
Marco

Stephane Desaunay | 17 Apr 2006 21:01
Picon

Problem for FXP with miror

Hello, i’m new user of lftp, and i have problem when i FXP with mirror command.

The problem become when I FXP directory (with multiple file inside) to servB and if someone FXP the same directory on servB

Lftp block on file are already FXP by other person.

 

For use mirror I do:

Lftp –f test

 

In test file:

mirror --use-cache --max-errors=1 --no-symlinks --verbose=3 --only-missing –n –p ftp://user:pass <at> serv1/dir_for_fxp ftp://user:pass <at> serv2/

 

and if someone fxp the same dir I have this result:

 

<--- 500 You need to use a client supporting PRET (PRE Transfer) to use PASV

---> PRET STOR stm-push-xvid.r05

<--- 553 Requested action not taken. File exists.

---> CPSV

<--- 500 You need to use a client supporting PRET (PRE Transfer) to use PASV

---> PRET STOR stm-push-xvid.r05

<--- 553 Requested action not taken. File exists.

---> CPSV

<--- 500 You need to use a client supporting PRET (PRE Transfer) to use PASV

---> PRET STOR stm-push-xvid.r05

<--- 553 Requested action not taken. File exists.

---> CPSV

<--- 500 You need to use a client supporting PRET (PRE Transfer) to use PASV

---> PRET STOR stm-push-xvid.r05

<--- 553 Requested action not taken. File exists.

 

And never stop to do this

Someone can tell me what I must to do for remove file at mirror list, or can I do a ‘ls’ after each fxp ??

 

I try everything and I don’t find L


Gmane