lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)

Home Page:http://lftp.yar.ru

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Interact with background jobs (scripted job control)

agowa opened this issue · comments

I have sent a large upload task into the background and would like to interact with the task and job from a script.
For e.g. lftp -c "attach $PID; jobs; exit bg; exit" doesn't work. After the attach is executed, it doesn't execute further commands and gets stuck in an interactive shell.

Am I doing something wrong or is it currently not possible to interact with an background lftp process (except maybe by manually attaching it inside screen/tmux and sending the additional commands via it instead of lftp itself, or other ugly workarounds).