From: Eduardo Ramos Testillano (eramedu) Date: Wed, 29 Apr 2020 16:57:09 +0000 (+0200) Subject: Fix start.sh script due to bad pid calculated X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=commitdiff_plain;h=c0e38fbae2c87f200232a72540c49cae6e725888 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. --- 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 !"