shell cmd

#!/bin/sh
. interco_set_env.sh

showUsage() {

    echo 'Intelli data enrich utility.'
    echo 'Usage:'
    echo 'interco__feed_enricher <input file name> <frequency> <business date>'
    echo 'Example: interco__feed_enricher.sh config/test//trade_fe20060825'

}

IMT_CMD_START_CLS=com.interco.IntercompanyDataEnricher

INPUT_FILE_TYPE=tra
INPUT_FILE_NAME=${1}
FREQUENCY=${2}
BUZ_DATE=${3}

if [ "${INPUT_FILE_NAME}" = "" ] || [ "${BUZ_DATE}" = "" ] || [ "${FREQUENCY}" = "" ]; then
   showUsage
   exit 1
fi

DATA_ENRICH_CMD="${JVM} ${IMT_CMD_START_CLS} ${INPUT_FILE_TYPE} ${INPUT_FILE_NAME} ${FREQUENCY} ${BUZ_DATE}"
#echo "Executing -> ${DATA_ENRICH_CMD}"

${DATA_ENRICH_CMD}

你可能感兴趣的:(shell)