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 &
 > 
 > 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.

-- 
Michael

Reply via email to