]> Creatis software - vip-workflow-odin.git/blobdiff - bin/odin.sh
added options field and correct odinepiexe
[vip-workflow-odin.git] / bin / odin.sh
index b761f604465ba146e9c647216511aa4a9b57bc00..089433f0acad4cf5d5b73fe1055b22c72aa61e64 100644 (file)
@@ -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 ]