From 43e1ef25edd9bd4d3de10f24ffc6a8381b3f1f73 Mon Sep 17 00:00:00 2001 From: "Eduardo Ramos Testillano (eramedu)" Date: Mon, 11 May 2020 19:01:17 +0200 Subject: [PATCH] Dump output and hide from non-tty, the ADML stdout/stderr Modify start script to dump output to file (ADML.output). This output gather (for example) procedure outputs from step-command threads. --- example/diameter/launcher/deployments/adml/start.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/diameter/launcher/deployments/adml/start.sh b/example/diameter/launcher/deployments/adml/start.sh index b53a90e..e51ddad 100755 --- a/example/diameter/launcher/deployments/adml/start.sh +++ b/example/diameter/launcher/deployments/adml/start.sh @@ -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 !" -- 2.20.1