Bash scripting deluge-console
Posted: 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:
And it returns this:
Here's what I have:
Code: Select all
#!/bin/bash
deluge-console connect localhost deluge deluge; pause *
Code: Select all
./test: line 2: pause: command not found