#!/bin/sh # # control.sh # # Launches a shell (command-line tool) to control an engine # # Based on wfcmd by Peter Mayne # # $Id: control.sh,v 1.2 2004/10/30 09:46:50 jmettraux Exp $ # # # DETERMINE OPENWFE_HOME if [ -z "$OPENWFE_HOME" ]; then OPENWFE_HOME=`echo $0 | sed -e 's/\/[^\/]*$//'` OPENWFE_HOME=${OPENWFE_HOME/bin/} OPENWFE_HOME=`echo $OPENWFE_HOME | sed -e 's/\/$//'` if [ -z "$OPENWFE_HOME" ]; then OPENWFE_HOME=./ fi echo "\$OPENWFE_HOME set to $OPENWFE_HOME" export OPENWFE_HOME else echo "\$OPENWFE_HOME found to be set to $OPENWFE_HOME" fi . $OPENWFE_HOME/bin/base.sh CLASS=openwfe.org.engine.control.shell.ControlShell CLASSPATH=\ $JAVA_HOME/jre/lib/rt.jar:\ $JAVA_HOME/lib/tools.jar:\ $JARS/jdom.jar:\ $JARS/log4j-1.2.5.jar:\ $JARS/openwfe-applic.jar:\ $JARS/openwfe-engine.jar APP=control $JAVA \ -Dapp=$APP \ $ENCODING \ -cp $CLASSPATH \ $CLASS $*