Note: This page is still under construction !
JD ScriptLauncher allows you to launch extern scripts on your machine just out of the JD interface. These scripts must be executable files which you have to put into a folder named “scripts” in the root directory of JD.
Note:
JD ScriptLauncher does not allow you to kill any of your started scripts.
Currently there is only one instruction which you can write as comment in your script which will be evaluated by the ScriptLauncher plugin (this instruction is optional, you don't need to use it):
__LAUNCHER__:ADD_CHECKBOX
Will simply add a checkbox to the script's entry in the launcher.
Example (UNIX):
#!/bin/bash #__LAUNCHER__:ADD_CHECKBOX #do something
Tip (UNIX):
If you want to kill a script containing an infinite loop you have to kill it with another (“stop”)-script or with same by executing it again.
The main idea is:
Does a process of this script already exist?
If so, then kill it and exit this script
You can do that with Bash-Scripting - this code might help you:
#!/bin/bash
PIDS=`pidof -o $$ -x poll.sh`
if [ x$PIDS != x ]
then kill -s SIGTERM $PIDS
fi
sleep 10