JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 09.12.2018, 09:05
MrVideo's Avatar
MrVideo MrVideo is offline
Black Hole
 
Join Date: Nov 2013
Location: Madison, WI
Posts: 267
Default Can a download be started from the Linux Commandline?

I will be away from over the Xmas holiday period and would like to be able to start JD2 downloads from the commandline. I'll be logged into my Linux server via ssh. I would like to be able to do something like:
Code:
jd2 http:[slash][slash]valid_URL.whatever
and have JD2 immediately start the download in the background. Of course, if it didn't like the URL, to report back when it exits.

And yes, the GUI version of JD2 will be running while I am gone, so it can interact with that, i.e., putting the URL in the download area immediately, instead of putting it in the LinkGrabber area. I obviously won't be able to see the GUI, but I can check on the downloaded files by looking in the download area of the NAS box (the downloads are placed in my NAS).

Thanks for any hints/tips.
Reply With Quote
  #2  
Old 09.12.2018, 10:22
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 452
Default

You can get a list of the available CLI parameters using:
Code:
java -jar jdownloader.jar -help

JD can be accessed remotely using WebUI:
Code:
https://my.jdownloader.org/
.
Reply With Quote
  #3  
Old 09.12.2018, 15:39
MrVideo's Avatar
MrVideo MrVideo is offline
Black Hole
 
Join Date: Nov 2013
Location: Madison, WI
Posts: 267
Default

Thanks.

The Java command to get the CLI list didn't work. All I got was a boatload of stderr messages. Nothing in the very long output had anything regarding the CLI interface.

Last edited by MrVideo; 09.12.2018 at 15:53.
Reply With Quote
  #4  
Old 09.12.2018, 20:07
MrVideo's Avatar
MrVideo MrVideo is offline
Black Hole
 
Join Date: Nov 2013
Location: Madison, WI
Posts: 267
Default

Still do not know how to get the CLI options to be displayed. I'd like to know in any event. But, got it working via the WebUI.

This can be marked as solved.
Reply With Quote
  #5  
Old 09.12.2018, 20:11
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 452
Default

Quote:
Originally Posted by MrVideo View Post
Still do not know how to get the CLI options to be displayed. I'd like to know in any event.
Post #314408
Reply With Quote
  #6  
Old 11.12.2018, 23:44
MrVideo's Avatar
MrVideo MrVideo is offline
Black Hole
 
Join Date: Nov 2013
Location: Madison, WI
Posts: 267
Default

Thanks. I see why it didn't work before. In your post you had "-help" when it is "--help".

UPDATE: still doesn't work. I get a lot of this on stderr:
Code:
JarHandlerWorkaroundOracle:setURLStreamHandlerFactory
JarHandlerWorkaroundOracle:replaceLauncherFactory
JarHandlerWorkaroundOracle:replaceURLClassPath
JarHandlerWorkaroundOracle:replacejarHandler
JarHandlerWorkaroundOracle:replaceLoaders:1
JarHandlerWorkaroundOracle:replaceLoader:0:handler
JarHandlerWorkaroundOracle:replaceLoader:0:handler:jar:file:/home/brown/jd2/JDownloader.jar!/
Mate Desktop detected
INFO >> Prefer (merged) JSon Storage from File: /home/brown/jd2/cfg/org.appwork.utils.logging2.LogConfig.json
FINER >> Init StorageHandler for Interface:org.appwork.utils.logging2.LogConfig|Path:/home/brown/jd2/cfg/org.appwork.utils.logging2.LogConfig

THREAD: 1
1|Log.L.log 12/11/18 3:51:27 PM - INFO [ org.appwork.loggingv3.LogV3(info) ] -> Application Root: /home/brown/jd2
Multiple LogControllers Detected: org.appwork.utils.logging2.extmanager.LoggerFactory
Multiple LogControllers Detected: org.jdownloader.logging.LogController
1|Log.L.log 12/11/18 3:51:27 PM - INFO [ org.appwork.storage.JsonKeyValueStorage(<init>) ] -> Prefer (merged) JSon Storage from File: /home/brown/jd2/cfg/org.jdownloader.update.lastchance.LastChanceConfig.json
[...]
I see from the referenced link that -h, -help or -? is supposed to work. raztoki showed --help in his example. -? doesn't work under Linux. raztoki's posting was done under M$. Does this not work under Linux.

Even if this was to work, I notice that you can add links to the LinkGrabber, but no way to actually start downloading.

Last edited by MrVideo; 12.12.2018 at 00:05.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 11:49.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.