From 3df6432f30bd5316c35e66ee2da8a9760a8e15f3 Mon Sep 17 00:00:00 2001 From: "Eduardo Ramos Testillano (eramedu)" Date: Mon, 18 May 2020 01:31:01 +0200 Subject: [PATCH] Keep output being visible also, pid must be obtained with pgrep_live because 'echo $!' gets the tee PID. --- example/diameter/launcher/deployments/adml/start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/diameter/launcher/deployments/adml/start.sh b/example/diameter/launcher/deployments/adml/start.sh index e51ddad..ab428af 100755 --- a/example/diameter/launcher/deployments/adml/start.sh +++ b/example/diameter/launcher/deployments/adml/start.sh @@ -18,7 +18,7 @@ rm -f counters/* test-reports/* *.csv export LD_LIBRARY_PATH=$PWD/dynlibs args=$(eval echo $(grep -v ^# $ARGS)) #ulimit -c unlimited -./ADML ${args} > ADML.output & -echo $! > .pid +./ADML ${args} | tee -a ADML.output & +pgrep_live ADML > .pid echo "Done !" -- 2.20.1