I gave a try to `lftp`:
lftp -c "torrent $1"
where `$1` is the `.torrent` file.
Unlike
lftp -e "torrent $1"
`lftp -c` must exit when the command is done (`lftp -e` leaves you in its command pronpt).
It also does seeding. (I don't know yet how seeding interacts with `-c`.)
## Seeding after the command finished
This is actually done by `lftp -c`:
first, I started it. And the command finished after a while:
Name: lib.ru_2007-03-05.7z
dn:1.7G up:0 complete, ratio:0.000000
Seeding in background...
[15137] Moving to background to complete transfers...
$
Checking that it is still active (seeding) in the background:
$ ps x | fgrep lftp
15137 ? Ss 0:37 lftp -c torrent lib.ru_2007-03-05.7z.4fb7e98d43804eca.torrent
67517 pts/3 S+ 0:00 grep -F --color=auto lftp
$