JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 20.03.2016, 16:58
Izual
Guest
 
Posts: n/a
Default Problem with Event Scripter

Hi Everybody,
First of all my apologies for my bad English
I've installed JDownoader headless in QNAP NAS, I want to autmtically rename my downloads, Ive got this script:
Renamer.sh
PHP Code:
filebot -script fn:amc --lang es --output "/share/CACHEDEV1_DATA/Multimedia" --action move --conflict skip -non-strict "/share/CACHEDEV1_DATA/Multimedia/JDownloader" --log-file amc.log --def excludeList=amc.txt --def "seriesFormat=/share/CACHEDEV1_DATA/Multimedia/Series/{n}/{n} - {s.pad(2)+'x'}{e.pad(2)} - {t}" "movieFormat=/share/CACHEDEV1_DATA/Multimedia/Peliculas/{n} ({y})" 
This Script works fine for mine when I execute it manually, I'm trying to execute it when a file is extracted with this code:
PHP Code:
[{"eventTrigger":"ON_PACKAGE_FINISHED""enabled":true"name":"Renamer""script":"var script = '/share/Download/Renamer.sh'\nlog(callSync(script))\n""eventTriggerSettings":{}}] 
But nothing happens, please can someone help me?
What I'm doing wrong?
Lots of thanks
Reply With Quote
  #2  
Old 20.03.2016, 19:46
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 68,318
Default

Your script needs to specify the full path and make sure to export java home variable correct.
It should be a correct script

#!/bin/sh (or bash)
fullpathcmd ....

chmod +x script (to make it executable)


your script has several issues:
1.) filebot must not be available in your path variable. execute from JDownloader is not the same as starting it manual inside ssh session
2.) filebot is a java script as far as I know, so when that java path is not set in your environment then the start script will also fail
2.1. edit the script and specify the full path to java
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 20.03.2016, 20:43
rednoah rednoah is offline
JD Alpha
 
Join Date: Dec 2015
Posts: 21
Lightbulb

Check the console output. It'll tell you what's wrong.
Code:
**External links are only visible to Support Staff**
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 07:24.
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 - 2020, Jelsoft Enterprises Ltd.