#!/bin/bash
#
# manipulate any replica catalog implementation through a generic
# interface from the shell.
#
# $Id: pegasus-rc-client 4650 2011-11-11 16:43:40Z rynge $
#

PEGASUS_CONFIG="`dirname $0`/pegasus-config"
eval `$PEGASUS_CONFIG --sh-dump`
. $PEGASUS_SHARE_DIR/common.sh

# PEGASUS_HOME should not be set anymore
unset PEGASUS_HOME

# run java program
nice ${JAVA} \
       "-Dpegasus.home.sysconfdir=$PEGASUS_CONF_DIR" \
       "-Dpegasus.home.bindir=$PEGASUS_BIN_DIR" \
       "-Dpegasus.home.sharedstatedir=$PEGASUS_SHARE_DIR" \
       "-Dpegasus.home.schemadir=$PEGASUS_SCHEMA_DIR" \
       $addon edu.isi.pegasus.planner.client.RCClient "$@"

