#!/bin/sh
#
# Script used to run a task stand alone.
#
# Description: Used to start the specified task stand alone.

# Force the use of AUIML
export NO_HTML=1

# Include the common hmc functions
. ./hmcfunctions

# Remember the current HOME directory.
realhome="$HOME"

# setup the correct runtime environment
setupEnv $PWD manager

# Reset the HOME directory
export HOME=$realhome

# Make sure C programs that use Native Bridge don't try to contact the pcedaemon
export BRIDGE_PCE_INFO=none

# run the specified task
java -DSTANDALONE_TASK=YES -DCONSOLE_PATH=$CONSOLE_PATH -Djava.library.path=$LD_LIBRARY_PATH \
     -Djava.security.policy=$CONSOLE_PATH/data/rmipolicy com.ibm.hwmca.fw.util.standalone.StandaloneApp $1
