1

I have lftp process running for days at a time on a CentOS machine. I read the lftp man pages and discovered the attach command. However when I call it with the respective process id from the lftp shell I get Unknown command "attach".

Any suggestions?

3
  • It's not clear what it is you're actually trying to do. What do you mean by "attach" exactly? May 3, 2015 at 9:36
  • What i mean is to be able to view the current jobs progress/output or job queue in the terminal
    – cathal
    May 3, 2015 at 10:13
  • And where is that output going currently? How was the process created? May 3, 2015 at 10:19

2 Answers 2

1

There could be a few reasons:

  1. Your lftp version is lower than 4.3.0, see Changes.
  2. You're using Debian stable version.

According to this answer:

The Debian stable version might not have the attach feature though, but you can still list the active lftp processes with pgrep.

But you can trick the shell if you set cmd:move-background-detach setting to false and use the fg command to bring lftp back. See man page.

0

On stable Debian.

After being disconnected (computer entered sleep mode) I simply reconnected in ssh, cd to the local dir, logged in to external server via lftp and did same command again

mirror -c --parallel=10

And it resumed

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .