Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

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:
Standard_Jobs_Overview JITL - JobScheduler Integrated Template Library

The class _ path is normally not documented. You are on the sure safe side, when if you add all .jar files from $SCHEDULER_HOME/lib to the class _ path. To make this a little bit more Handling will be easier, if you can navigate to $SCHEDULER_HOME/lib and start the class from therethat location.

Example

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.

 

Code Block
languagebash
titleStart a job from the command line (Windows)
java -classpath "com.sos.ftphistory-1.6-3155-19937.jar;com.sos.dailyschedule-1.6-3155-20025.jar;com.sos.hibernate-1.6-3155-20248.jar;com.sos.jitl-1.6-3155-20266.jar;com.sos.JobSchedulerLocalization-1.6-3155-20132.jar;com.sos.JSHelper-1.6-3155-20483.jar;com.sos.scheduler-1.6-3155-20487.jar;com.sos.schedulerhistory-1.6-3155-20027.jar;log4j-1.2.16.jar;mysql-connector-java-5.1.16.jar;ojdbc6.jar;slf4j-api-1.6.4.jar;slf4j-log4j12-1.6.4.jar;hibernate/antlr-2.7.6.jar;hibernate/commons-collections-3.1.jar;hibernate/dom4j-1.6.1.jar;hibernate/hibernate-jpa-2.0-api-1.0.0.Final.jar;hibernate/hibernate3.jar;hibernate/javassist-3.12.0.GA.jar;hibernate/jta-1.1.jar" 'com.sos.jitl.housekeeping.cleanupdb.JobSchedulerCleanupSchedulerDbMain_' -delete_

...

interval 30 -hibernate_configuration_file "C:/Users/auser/Documents/sos-berlin.com/jobscheduler/scheduler_current/config/hibernate.cfg.xml"

 

_