24 lines
706 B
Bash
Executable file
24 lines
706 B
Bash
Executable file
#!/bin/sh
|
|
##
|
|
##
|
|
|
|
# this allows you to run this script from outside of ./bin
|
|
path_to_script=`readlink -f $0`
|
|
RUN_FROM_DIR=`dirname $path_to_script`
|
|
|
|
GFESUITE_DIR=`dirname $RUN_FROM_DIR`
|
|
|
|
# get the base environment
|
|
source ${RUN_FROM_DIR}/setup.env
|
|
|
|
# setup the environment needed to run the the Python
|
|
export LD_LIBRARY_PATH=${GFESUITE_DIR}/src/lib:${PYTHON_INSTALL}/lib
|
|
export PYTHONPATH=${RUN_FROM_DIR}/src:${RUN_FROM_DIR}/activeTable:$PYTHONPATH
|
|
|
|
# execute the ifpInit Python module
|
|
_PYTHON="${PYTHON_INSTALL}/bin/python"
|
|
_MODULE="${RUN_FROM_DIR}/src/activeTable/ingestAT.py"
|
|
|
|
# quoting of '$@' is used to prevent command line interpretation
|
|
$_PYTHON $_MODULE -h ${DEFAULT_HOST} -p ${DEFAULT_PORT} "$@"
|
|
|