X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bin%2Fodin.sh;fp=bin%2Fodin.sh;h=089433f0acad4cf5d5b73fe1055b22c72aa61e64;hb=8f641fa9b66ba2cec9983401990c5a4cf80a56b2;hp=b761f604465ba146e9c647216511aa4a9b57bc00;hpb=b01e3c2793820d3e97933aa844bb503bdc750835;p=vip-workflow-odin.git diff --git a/bin/odin.sh b/bin/odin.sh index b761f60..089433f 100644 --- a/bin/odin.sh +++ b/bin/odin.sh @@ -72,6 +72,17 @@ PROPATH=$1 SMPPATH=$2 RESDIR=$3 ODINSEQ=$4 +OPTIONS=$5 + +if [ "${OPTIONS}" != "no" ] +then + OPT=`echo ${OPTIONS} | sed s/_/\ /g` +else + OPT="" +fi + +echo "Options are $OPT" + PRO=`basename $PROPATH` SMP=`basename $SMPPATH` @@ -109,8 +120,8 @@ else fi #launching program odinrecopexe -echo "executing odinrecopexe -o $OUTNAME" -./odinrecoexe -o $OUTNAME +echo "executing odinrecopexe $OPT -o $OUTNAME" +./odinrecoexe $OPT -o $OUTNAME CODE=$? if [ ${CODE} != 0 ]