first of all, I want to create shell script to start/stop downloads in torrent client. I don't need CLI but if you know how I can do that with CLI using shell script then it is okay.
I use jDownloader which is GUI based application but has some command line arguments as below which I use to start/stop download.
-h/--help Show this help message
-a/--add-link(s) Add links
-co/--add-container(s) Add containers
-d/--start-download Start download
-D/--stop-download Stop download
-H/--hide Don't open Linkgrabber when adding Links
-m/--minimize Minimize download window
-f/--focus Get jD to foreground/focus
-s/--show Show JAC prepared captchas
-t/--train Train a JAC method
-r/--reconnect Perform a Reconnect
-C/--captcha <filepath or url> <method> Get code from image using JAntiCaptcha
-p/--add-password(s) Add passwords
-n --new-instance Force new instance if another jD is running
So I can easily start/stop download as follows,
jdownloader --start-download
jdownloader --stop-download
now I want torrent client to do that through shell script.
rtorrent, deluge and transmission all have native Linux torrent clients that can be operated via the command line.
I use
Flush
to start or stop torrent downloads of running instance through terminal.I can use these options with flush.
Command line options for other torrent clients
1.
Deluge
have very few options2. For
Transmission
3.
qbittorrent
optionsutorrent has that capability
here are some resources that may help you gain more info.
https://forum.utorrent.com/viewtopic.php?id=53988
http://www.utorrent.com/downloads/linux
transmission-gtk has the "-p" option, that starts the client with all torrents paused. With no options will start the client with all the torrents downloading.
rTorrent: