Page 1 of 1

Bash scripting deluge-console

Posted: Tue Oct 03, 2017 1:46 pm
by koolmon10
I'm trying to create a script to pause all torrents on another machine, but when I try to pass multiple commands to deluge-console with a semicolon, bash interprets the second command as a bash command and it doesn't work.

Here's what I have:

Code: Select all

#!/bin/bash
deluge-console connect localhost deluge deluge; pause *
And it returns this:

Code: Select all

./test: line 2: pause: command not found

Re: Bash scripting deluge-console

Posted: Tue Oct 03, 2017 4:37 pm
by sinaptika
Try:

Code: Select all

deluge-console "connect localhost deluge deluge;pause *"
If on localhost, like in the example:

Code: Select all

deluge-console -c /path/to/deluge/config "pause *"