#!/bin/bash
-# touch .operation_background to force background execution of every ADML instances operations "broadcasted"
cd `dirname $0`
if [ ! -d "ADMLS" ]
then
exit 1
fi
-BGROUND=
-[ -f .operation_background ] && BGROUND=yes
+if [ "$1" = "-h" -o "$1" = "--help" ]
+then
+ first_adml=$(ls -d ADMLS/* | head -n +1)
+ $first_adml/operation.sh help
+ exit 0
+fi
for op in `ls ADMLS/*/operation.sh`
do
cd $dn_op
echo -n "Instance `basename $dn_op`: "
0>launcher.trace
- if [ -n "$BGROUND" ]
- then
- ./operation.sh $@ &
- sleep 0.01
- else
- ./operation.sh $@
- [ $? -ne 0 ] && { echo ; exit 1 ; }
- fi
+ ./operation.sh $@ &
+ #[ $? -ne 0 ] && { echo ; exit 1 ; }
cd - >/dev/null
done