Bash scripting deluge-console

General support for problems installing or using Deluge
koolmon10
New User
New User
Posts: 2
Joined: Wed Oct 26, 2016 9:31 pm
OS or Distro: Win 2012r2/CentOS 7

Bash scripting deluge-console

Postby koolmon10 » Tue Oct 03, 2017 1:46 pm

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: 12
Joined: Thu Apr 27, 2017 6:23 pm
OS or Distro: Linux/Alpine,Debian

Re: Bash scripting deluge-console

Postby sinaptika » Tue Oct 03, 2017 4:37 pm

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


Return to “Support”

Who is online

Users browsing this forum: No registered users and 8 guests