scope of `--torrent-done-script` option

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
intuited
Posts: 10
Joined: Mon Feb 22, 2010 9:41 pm

scope of `--torrent-done-script` option

Post by intuited »

It's not clear from the limited documentation whether the `--torrent-done-script` option to `transmission-remote` works globally, in a way specific to a particular torrent or torrents, or whether it can be applied in either of these fashions. There's no indication from either `transmission-remote -si` or `transmission-remote -t$n -i` that a torrent-done-script has been set, so I'm not sure how to figure this out without source-diving. FWIW it would be great to be able to specify a done script on either a global or torrent-specific basis and for transmission to remember what scripts go with which torrents across restarts.

Maybe this should be evident based on a more general pattern that I'm not aware of? It's kind of hard to figure out where this is actually documented: the manpage is fairly sparse, but the options (mostly) correspond to config file entries, which seem to be documented here, but without the info I mentioned above. In my version of the manpage (ubuntu 10.10's current `transmission-daemon` package, version 2.05-0ubuntu0.2), the --torrent-done-script is not actually documented, however when I run `transmission-remote -h` I see the terse description of that option. Google doesn't give much in the way of info either.

Anyway, thanks for any help that you can provide.
gunzip
Posts: 272
Joined: Wed May 05, 2010 2:12 am

Re: scope of `--torrent-done-script` option

Post by gunzip »

in settings.json if

"script-torrent-done-enabled": true,

it is a global setting, i.e., it runs on completion all of torrents.
intuited
Posts: 10
Joined: Mon Feb 22, 2010 9:41 pm

Re: scope of `--torrent-done-script` option

Post by intuited »

Okay, thanks. Are you also saying that it doesn't also have a per-torrent mode? Some of the options, like for example `-d`, can be used both as global options and to control per-torrent behaviour. It would make sense semantically for `--torrent-done-script` to work this way.
Last edited by intuited on Tue Apr 26, 2011 4:03 am, edited 1 time in total.
gunzip
Posts: 272
Joined: Wed May 05, 2010 2:12 am

Re: scope of `--torrent-done-script` option

Post by gunzip »

no i'm almost positive it can't be set on a per-torrent basis .. the script-done feature is a Global option.
intuited
Posts: 10
Joined: Mon Feb 22, 2010 9:41 pm

Re: scope of `--torrent-done-script` option

Post by intuited »

Okay. Should I submit a bug report on the documentation? Or is this obvious to most people?
roger21
Posts: 3
Joined: Wed Oct 14, 2009 8:03 pm

Re: scope of `--torrent-done-script` option

Post by roger21 »

oh you should definetely fill a bug and also one about having a per torrent behaviour with and also one about sending the script some parameters etc

oh ok nvm : https://trac.transmissionbt.com/wiki/Scripts
Post Reply