Check deluge status from terminal/HTTP API

ednaiul

Check deluge status from terminal/HTTP API

Postby ednaiul » Mon Jan 30, 2012 4:31 pm

Hi

First of all, thank you very much for this great torrent client. I have installed it on my HTPC with Ubuntu 10.10, and it works perfectly for me (and the webUI is awesome!).

So, the problem is this... I want to check from a shell script if deluge is running (easy with "ps" command) and if it's downloading something. I can't find an easy way to do the second part. In other programs, I use HTTP APIs, get the response through "wget" (example: wget http://localhost:1111/get/status) and parse it in my script. I want to know if there is something similar to this in Deluge, and what are the commands I can call.

I'm using the deluge client with desktop UI (not the daemon) and webUI plugin, if this can help.

Thanks a lot for your answer,
Ednaiul

Adroitly

Re: Check deluge status from terminal/HTTP API

Postby Adroitly » Mon Apr 23, 2012 10:58 pm

You can run commands using deluge-console.
e.g.

Code: Select all

deluge-console 'info'


There is a good list here http://whatbox.ca/wiki/Deluge_Console_Documentation


Return to “Off-topic Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests