case "$1" in
?*.comm)
- echo "Lancement..."
+ echo "Launching execution..."
for i in ./{*.csv,*.med}; do rm -f "$i" ; done
# activate du banc repose sur module qui est paramétré sous scibian pour bash
ib-run -- $PWD/$1 $PWD/_ibworkdir
if test $? != 0;
then
+ deactivate
myabort "A problem occurs while executing ib-run -- ${PWD}/${1} ${PWD}/_ibworkdir";
else
- echo "Execution réussie";
+ echo -e "\nSuccessful execution.";
+ for i in $PWD/_ibworkdir/{*.csv,*.med}; do ln -sf "$i" "`basename "$i"`"; done
+ deactivate
fi
- for i in $PWD/_ibworkdir/{*.csv,*.med}; do ln -sf "$i" "`basename "$i"`"; done
- deactivate
+ echo -e "\nSuccessful ending..."
;;
*)
echo "Usage: $0 <filename>.comm" >&2