Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running rTorrent 0.9.2 and have configured it to move completed torrents to a different folder with this configuration line:

system.method.set_key =,move_complete,"d.set_directory=~/done/;execute=mv,-u,$d.get_base_path=,~/done/"

This is working fine, but I would like it to also move the .torrent file that it creates (from a magnet link into the session directory) into this done directory with the same name as the torrent and a .torrent extension. I tried adding another cp command, but I can not seem to figure out which variable ($d.get_hash did not work) stores the torrent's hash (which is what the .torrent files are named in the session directory). Is there a way to do this with rTorrent, if so how?

share|improve this question

See here, the verbs are there (how to get a basename, for example), you just have to exchange the subjects (i.e. filename commands you intend to use).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.