JITL jobs in a shell
Some of the JITL jobs are prepared to be executed from shell. What you need is
- the parameters,
- the name of the java class,
- the class path for the java implementation.
The name of the java class and the parameters can be found in the documentation of the job. All documentations can be found here: JITL - JobScheduler Integrated Template Library
The class path is normally not documented. You are on the safe side, if you add all .jar files from $SCHEDULER_HOME/lib to the class path. Handling will be easier, if you navigate to $SCHEDULER_HOME/lib and start the class from that location.
Here is an example how to start the job JobSchedulerCleanupSchedulerDbMain from shell:
- The parameters for the hibernate configuration file and for the delete interval are specified. Also the list of required jar files in the class path.
- You can execute this from shell by navigation to $SCHEDULER_HOME/lib and the execute this command.
This is an example to provide the call with a shell script.