improvs
[anna.git] / example / diameter / launcher / deployments / st-client / operation_all.sh
index 1304dfd..2dcb900 100755 (executable)
@@ -1,5 +1,4 @@
 #!/bin/bash
-# touch .operation_background to force background execution of every ADML instances operations "broadcasted"
 cd `dirname $0`
 if [ ! -d "ADMLS" ]
 then
@@ -9,8 +8,12 @@ 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
@@ -18,14 +21,8 @@ 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