You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Some of the JITL jobs are prepared to be executed from shell. What you need is

  1. the parameters
  2. the name of the java class
  3. 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

The class_path is normally not documented. You are on the sure side, when you add all .jar files from $SCHEDULER_HOME/lib to the class_path. To make this a little bit more easier, you can navigate to $SCHEDULER_HOME/lib and start the class from there.

Here is an example how to start JobSchedulerCleanupSchedulerDbMain from shell. The parameters for the hibernate configuration file and for the delete intervall are specified. Also the list of needed jar files in the class_path. You can execute this from shell by navigation to $SCHEDULER_HOME/lib (cd $SCHEDULER_HOME/lib) and the execute this command.

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_intervah1. 30 -hibernate_configuration_file"C:/Users/auser/Documents/sos-berlin.com/jobscheduler/scheduler_current/config/hibernate.cfg.xml"_

  • No labels