Monday, April 29, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 5252  / 3 Years ago, fri, july 2, 2021, 7:16:48

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.


More From » software-recommendation

 Answers
3

I use Flush to start or stop torrent downloads of running instance through terminal.


I can use these options with flush.


  --start={all,downloads,uploads}     Start torrents  
--stop={all,downloads,uploads} Stop torrents



Command line options for other torrent clients


1. Deluge have very few options


Usage: deluge-gtk [options]

Options:
--version show program's version number and exit
-h, --help show this help message and exit

Common Options:
-c CONFIG, --config=CONFIG
Set the config folder location
-l LOGFILE, --logfile=LOGFILE
Output to designated logfile instead of stdout
-L LOGLEVEL, --loglevel=LOGLEVEL
Set the log level: none, info, warning, error,
critical, debug
-q, --quiet Sets the log level to 'none', this is the same as `-L
none`

2. For Transmission


Usage:
transmission-gtk [OPTION...] [torrent files or urls]

Help Options:
-h, --help Show help options
--help-all Show all help options
--help-gtk Show GTK+ Options

GTK+ Options
--class=CLASS Program class as used by the window manager
--name=NAME Program name as used by the window manager
--screen=SCREEN X screen to use
--sync Make X calls synchronous
--gtk-module=MODULES Load additional GTK+ modules
--g-fatal-warnings Make all warnings fatal

Application Options:
-p, --paused Start with all torrents paused
--version Show version number and exit
-m, --minimized Start minimized in notification area
-g, --config-dir Where to look for configuration files
--display=DISPLAY X display to use

3. qbittorrent options


Usage:
qbittorrent --version: displays program version
qbittorrent --no-splash: disable splash screen
qbittorrent --help: displays this help message
qbittorrent --webui-port=x: changes the webui port (current: 8080)
qbittorrent [files or urls]: downloads the torrents passed by the user (optional)

[#38111] Friday, July 2, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
diket

Total Points: 167
Total Questions: 124
Total Answers: 109

Location: Somalia
Member since Wed, Mar 15, 2023
1 Year ago
;