Artificial intelligent assistant

command-line tool for a single download of a torrent (like wget or curl) I'm interested in a single command that would download the contents of a torrent (and perhaps participate as a seed following the download, until I stop it). Usually, there is a torrent-client daemon which should be started separately beforehand, and a client to control (like `transmission-remote`). But I'm looking for the simplicity of `wget` or `curl`: give one command, get the result after a while.

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
$

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 91d13e6a218a2d2f93acbeae46d9da81