Bash scripting deluge-console

General support for problems installing or using Deluge
Post Reply
koolmon10
Member
Member
Posts: 11
Joined: Wed Oct 26, 2016 9:31 pm

Bash scripting deluge-console

Post 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
sinaptika
Member
Member
Posts: 41
Joined: Thu Apr 27, 2017 6:23 pm

Re: Bash scripting deluge-console

Post 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 *"
Post Reply