Passing arguments from command line

General support for problems installing or using Deluge
Post Reply
light_my_fire
New User
New User
Posts: 3
Joined: Mon Mar 01, 2010 8:02 am
Location: Sydney AU

Passing arguments from command line

Post by light_my_fire »

Did 1.2.x break\discontinue the -a function? e.g. deluge -u console -a "config --set max_active_limit 0" now returns Unknown command: c

I'm trying to fix scheduling using cron. Previously I used a python script that I found on here a long time ago but that seems to have broken in this update as well.

Any help would be appreciated.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Passing arguments from command line

Post by Cas »

do you know there is a scheduler plugin that may meet your needs?
light_my_fire
New User
New User
Posts: 3
Joined: Mon Mar 01, 2010 8:02 am
Location: Sydney AU

Re: Passing arguments from command line

Post by light_my_fire »

Cas wrote:do you know there is a scheduler plugin that may meet your needs?
Yes, I installed the scheduler plugin but have not been able to make it work. There is no interaction possible with the green boxes on the config screen. I'm using the web ui and have tried it in firefox, IE & chrome on two different machines. Using the gui client is not an option for me.

I'd rather do it using cron if that is still possible.
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: Passing arguments from command line

Post by gazpachoking »

light_my_fire wrote:Did 1.2.x break\discontinue the -a function? e.g. deluge -u console -a "config --set max_active_limit 0" now returns Unknown command: c

I'm trying to fix scheduling using cron. Previously I used a python script that I found on here a long time ago but that seems to have broken in this update as well.

Any help would be appreciated.
I'm pretty sure you can just do:
deluge-console "config --set max_active_limit 0"
light_my_fire
New User
New User
Posts: 3
Joined: Mon Mar 01, 2010 8:02 am
Location: Sydney AU

Re: Passing arguments from command line

Post by light_my_fire »

gazpachoking wrote:
light_my_fire wrote:Did 1.2.x break\discontinue the -a function? e.g. deluge -u console -a "config --set max_active_limit 0" now returns Unknown command: c

I'm trying to fix scheduling using cron. Previously I used a python script that I found on here a long time ago but that seems to have broken in this update as well.

Any help would be appreciated.
I'm pretty sure you can just do:
deluge-console "config --set max_active_limit 0"
Thank you! That's exactly what I was looking for.
Post Reply