How do I attach running lftp process

0

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?

cathal

Posted 2015-05-03T08:44:02.673

Reputation: 1

It's not clear what it is you're actually trying to do. What do you mean by "attach" exactly? – David Schwartz – 2015-05-03T09:36:41.747

What i mean is to be able to view the current jobs progress/output or job queue in the terminal – cathal – 2015-05-03T10:13:40.113

And where is that output going currently? How was the process created? – David Schwartz – 2015-05-03T10:19:15.153

Answers

0

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.

Senki

Posted 2015-05-03T08:44:02.673

Reputation: 76