Check deluge status from terminal/HTTP API
Posted: 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
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