Okay, so I have a slightly unusual case, namely my Transmission client downloads and manages files on an external disk that may not be mounted straight away at system startup. This means that if Transmission opens on startup then the volume isn't available and it pauses transfers that can't continue as a result.
What I'm now doing is using a script to launch Transmission when the volume becomes available, rather than simply on login. This is working fine, however there are still some cases where Transmission may be open before the drive is mounted. I have code to detect this case, but I'm not sure what command I should run in order to tell Transmission to resume paused transfers.
Maybe I'm just not looking hard enough, but I've not been able to figure out the best way to just tell transmission-daemon to resume all torrents, or better still to fetch all paused torrents so I can do some basic processing on them. Ideally I'd like to be able to detect whether a paused torrent was paused intentionally, or paused due to an error, so I can only resume those that stopped automatically due to the volume not being available. It wouldn't need to be super sophisticated, but if I can detect that a torrent is both paused, and has a recent error, then that should be good enough to justify resuming it.
Can anyone give me any example commands or point me in the right direction?
Thanks!
Starting paused transfers from the command line
Re: Starting paused transfers from the command line
Renara wrote:I've not been able to figure out the best way to just tell transmission-daemon to resume all torrents,
Code: Select all
transmission-remote -t all -s
Renara wrote:Ideally I'd like to be able to detect whether a paused torrent was paused intentionally, or paused due to an error
Code: Select all
transmission-remote -l | grep -E "^[[:space:]]*[[:digit:]]+[*]" | grep " Stopped "
Re: Starting paused transfers from the command line
Thanks, that's exactly what I needed! Now I can actually just leave the script to worry about Transmission for me, perfect 
