El mié 06 feb 2013 12:33:15 CET, Alexander V. Lukyanov escribió:
On Wed, Feb 06, 2013 at 09:20:25AM +0100, J1 Simón wrote:
attach the backgrounded session but "cmd:at-exit-bg" isn't executed.
I detached the session and it backs to background. lftp executes:

    13:51:55 at-terminate
    13:51:55 at-background

at-terminate? Lftp still exists.

These messages are most probably from different lftp instances.
When you attach to a background lftp, another lftp runs the "attach" command.

So "at-terminate" is useless.

It depends on how you are going to use it. Anyway, you should somehow handle
the case of several lftp instances.


The man page says:
"at-terminate: the commands in string are executed before lftp terminates (either backgrounded or foreground)."

So really this command actually is useless and it doesn't what it says it does. What's the difference with "at-exit", "at-exit-bg" and "at-exit-fg"? Which is the way to attach a background session without launch another lftp instance? How can I determine if really lftp is terminated if "at-terminate" is executed when lftp still is executing?
_______________________________________________
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Reply via email to