From: Eduardo Ramos Testillano (eramedu) Date: Sun, 17 May 2020 23:31:01 +0000 (+0200) Subject: Keep output being visible X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=commitdiff_plain;h=3df6432f30bd5316c35e66ee2da8a9760a8e15f3 Keep output being visible also, pid must be obtained with pgrep_live because 'echo $!' gets the tee PID. --- 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 !"