#!/bin/sh

source $AUTOMED/bin/common_functions

#remove persistent db lock file
lckFile=`ls $HOME/.automed/dbEnv/overlay/*.lck`

if [ "$lckFile" ]
then
  echo "Removing exclusive lock files on persistent DB..."
  rm $lckFile
fi 

prog_dir=`dirname $0`
ext_lib_dir="$prog_dir/../lib"
etc_dir="$prog_dir/../etc"
lib_dir=$AUTOMED/java/distjar
ext_jars="$AUTOMED/java/classes:$AUTOMED/java/classes/examples"
get_list_jars $ext_lib_dir
get_list_jars $lib_dir
set -x 

java -cp $ext_jars rodex.BasicCON -x -y -n 5 \
-f etc/CONScenario1.properties -d "9.8 20.10 21.10" \
-c $HOME/.automed/data_source_repository.cfg


