#1
|
|||
|
|||
jd2 run shell script after finished download started by packagizer
Hello,
i want to run a shell script (linux) after a package finish to download, a package that is started by a packagizer rule. Is it possible? |
#2
|
|||
|
|||
Use same conditions in the script to identify the package, before running the shell script (using callSync() or callAsync() method).
|
#3
|
||||
|
||||
from what I understand you can not tell a package to call a script from package customiser, but you could use event scripter to look for something unique like comment you set via package customiser rule.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#4
|
|||
|
|||
This seems possible, but i've never done an event script before... i'll dig around to try to do it...
|
#5
|
|||
|
|||
callSync() and callAsync() are both eventscripter methods which can be used to execute your shell script:
Example code to be used in in eventscripter to run shell script: Code:
callSync("/path/to/my/script.sh"); Before running the script, you can use the same conditions (which you have used in packagizer) in the eventscripter script, to ascertain if the package was started by packagizer rule and the run the script if it matches the condition. If you need further help on this, you can also contact me in JD Chat. |
#6
|
|||
|
|||
Quote:
|
Thread Tools | |
Display Modes | |
|
|