Keep output being visible
authorEduardo Ramos Testillano (eramedu) <eduardo.ramos.testillano@ericsson.com>
Sun, 17 May 2020 23:31:01 +0000 (01:31 +0200)
committerEduardo Ramos Testillano (eramedu) <eduardo.ramos.testillano@ericsson.com>
Sun, 17 May 2020 23:31:01 +0000 (01:31 +0200)
also, pid must be obtained with pgrep_live
because 'echo $!' gets the tee PID.

example/diameter/launcher/deployments/adml/start.sh

index e51ddad..ab428af 100755 (executable)
@@ -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 !"