Keep output being visible
[anna.git] / example / diameter / launcher / deployments / adml / start.sh
index b8f2e9f..ab428af 100755 (executable)
@@ -11,12 +11,14 @@ ARGS=args.$1
 STARTED=`pgrep_live ADML`
 [ -n "$STARTED"  ] && { echo "Already started !"; echo "PID $STARTED" ; exit 1 ; }
 0> launcher.trace
+0> ADML.output
 for file in `ls *.launcher.log 2>/dev/null`; do 0> $file; done
 mkdir -p counters test-reports
 rm -f counters/* test-reports/* *.csv
 export LD_LIBRARY_PATH=$PWD/dynlibs
 args=$(eval echo $(grep -v ^# $ARGS))
-./ADML ${args} &
-echo $! > .pid
+#ulimit -c unlimited
+./ADML ${args} | tee -a ADML.output &
+pgrep_live ADML > .pid
 echo "Done !"