Skip to content

Instantly share code, notes, and snippets.

@jonfuller
Created January 20, 2011 14:48
Show Gist options
  • Save jonfuller/788001 to your computer and use it in GitHub Desktop.
Save jonfuller/788001 to your computer and use it in GitHub Desktop.

Revisions

  1. jonfuller created this gist Jan 20, 2011.
    6 changes: 6 additions & 0 deletions status.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    {
    "arguments": {
    "fields": [ "id", "name", "percentDone", "totalSize", "rateDownload", "rateUpload" ]
    },
    "method": "torrent-get"
    }
    5 changes: 5 additions & 0 deletions stop-all.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    {
    "arguments": {
    },
    "method": "torrent-stop"
    }
    1 change: 1 addition & 0 deletions transmission_rpc.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    curl -H "X-Transmission-Session-Id: SESSIONIDGOESHERE" -d @status.json http://localhost:9091/transmission/rpc | prettify_json.rb