Page 1 of 1
Can I use the console without entering the interactive mode?
Posted: Sat Nov 23, 2013 2:08 pm
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?
Re: Can I use the console without entering the interactive m
Posted: Sat Nov 23, 2013 5:12 pm
by Cas
you need to quote the whole command
Re: Can I use the console without entering the interactive m
Posted: Sat Nov 23, 2013 5:29 pm
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'
Re: Can I use the console without entering the interactive m
Posted: Sat Nov 23, 2013 8:13 pm
by Cas
Re: Can I use the console without entering the interactive m
Posted: Sat Nov 23, 2013 8:25 pm
by KorP
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.
Re: Can I use the console without entering the interactive m
Posted: Sat Nov 23, 2013 11:28 pm
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
Re: Can I use the console without entering the interactive m
Posted: Sun Nov 24, 2013 7:04 am
by KorP
I realized my mistake. Thank you very much for your help!