Dump output and hide from non-tty, the ADML stdout/stderr
[anna.git] / example / diameter / launcher / deployments / adml / start.sh
index b53a90e..e51ddad 100755 (executable)
@@ -11,13 +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))
 #ulimit -c unlimited
-./ADML ${args} &
+./ADML ${args} > ADML.output &
 echo $! > .pid
 echo "Done !"