Can I use the console without entering the interactive mode?

General support for problems installing or using Deluge
Post Reply
KorP
Member
Member
Posts: 11
Joined: Tue Apr 12, 2011 4:28 pm

Can I use the console without entering the interactive mode?

Post by KorP »

There is a need to add to download torrents from the script accordingly can not enter from the script in interactive mode to execute commands that are already there. Trying to do something like that

Code: Select all

korp # deluge-console add -p /home/share/torrent/download/ /home/share/other/\[rutracker.org\].t4550332.torrent
and get an error
deluge-console: error: no such option: -p
interactive mode, all of course added.
Can I use the console without entering the interactive mode?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Can I use the console without entering the interactive m

Post by Cas »

you need to quote the whole command
KorP
Member
Member
Posts: 11
Joined: Tue Apr 12, 2011 4:28 pm

Re: Can I use the console without entering the interactive m

Post by KorP »

Cas wrote:you need to quote the whole command
tried to do so here

Code: Select all

deluge-console 'connect 127.0.0.1:58846 user pass add -p /home/share/torrent/download/ /home/share/other/\[rutracker.org\].t4550332.torrent'
and get
Error parsing options: no such option: -p
Traceback (most recent call last):
File "/usr/bin/deluge-console", line 9, in <module>
load_entry_point('deluge==1.3.6', 'console_scripts', 'deluge-console')()
File "/usr/lib64/python2.7/site-packages/deluge/ui/console/main.py", line 74, in start
Console().start()
File "/usr/lib64/python2.7/site-packages/deluge/ui/console/main.py", line 71, in start
ConsoleUI(self.args)
File "/usr/lib64/python2.7/site-packages/deluge/ui/console/main.py", line 200, in __init__
d.addCallback(on_connect)
AttributeError: 'NoneType' object has no attribute 'addCallback'
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Can I use the console without entering the interactive m

Post by Cas »

Code: Select all

man deluge-console
KorP
Member
Member
Posts: 11
Joined: Tue Apr 12, 2011 4:28 pm

Re: Can I use the console without entering the interactive m

Post by KorP »

Cas wrote:

Code: Select all

man deluge-console
Sorry, but I do not know what I should see there. One long 34-line manual, and will not be anything that could be associated with my question. Would be extremely grateful if you were still able to help me.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Can I use the console without entering the interactive m

Post by Cas »

34 lines is short and the answer is there...
Run multiple commands by separating them with a semi-colon (;)
If you are using the connect command make sure you are using Deluge 1.3.6
KorP
Member
Member
Posts: 11
Joined: Tue Apr 12, 2011 4:28 pm

Re: Can I use the console without entering the interactive m

Post by KorP »

I realized my mistake. Thank you very much for your help!
Post Reply