I think you have to feed the commands to lftp from the stdin. Like this:
echo queue get ... | lftp -c "attach 1234"
The commands after attach command in your script are executed after the
attach is finished (detached).
вс, 10 дек. 2017, 12:00 Tim :
> I'm trying to automate LFTP activity fro
I'm trying to automate LFTP activity from a Python script. I'm would like
to achieve a behaviour whereby if there is a background LFTP process then
attach to it and append to its existing queue. I'm invoking LFTP with -f
and feeding it a string of commands generated from my Python script.
I'm usin