From c0e38fbae2c87f200232a72540c49cae6e725888 Mon Sep 17 00:00:00 2001 From: "Eduardo Ramos Testillano (eramedu)" Date: Wed, 29 Apr 2020 18:57:09 +0200 Subject: [PATCH] Fix start.sh script due to bad pid calculated The .pid was having the eval process PID instead of ADML's one. We must to evaluate first, and then pass arguments expanded to the ADML executable. --- 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 faadf1a..b8f2e9f 100755 --- a/example/diameter/launcher/deployments/adml/start.sh +++ b/example/diameter/launcher/deployments/adml/start.sh @@ -15,7 +15,8 @@ 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 -eval ./ADML `grep -v ^# $ARGS` & +args=$(eval echo $(grep -v ^# $ARGS)) +./ADML ${args} & echo $! > .pid echo "Done !" -- 2.20.1