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/   

Reply via email to