X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fresources%2Fscripts%2Foperation_signal.sh;h=85b31112b4a0e44518b0aaa0a63261bcac8700eb;hb=983eaadca6cfae987be3453853d75bb9bce04487;hp=4db01a51403fbc97177aaa6cb456797c19c92848;hpb=932990242f7b76f7c1404bdfdda6587bbe588c5f;p=anna.git diff --git a/example/diameter/launcher/resources/scripts/operation_signal.sh b/example/diameter/launcher/resources/scripts/operation_signal.sh index 4db01a5..85b3111 100755 --- a/example/diameter/launcher/resources/scripts/operation_signal.sh +++ b/example/diameter/launcher/resources/scripts/operation_signal.sh @@ -30,7 +30,7 @@ else fi 0> sigusr2.out kill -s SIGUSR2 $PID -count=0 -while [ ! -s sigusr2.out -a $count -lt 500 ]; do sleep 0.01; count=$((count+1)); done -cat `pwd`/sigusr2.out +# Detect EOF and print all except that last line: +while [ -z "$(tail -1 sigusr2.out | grep ^EOF)" ]; do sleep 0.1; done +head --lines=-1 `pwd`/sigusr2.out