X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fresources%2Fscripts%2Foperation_signal.sh;fp=example%2Fdiameter%2Flauncher%2Fresources%2Fscripts%2Foperation_signal.sh;h=c6c15bebcc1a26bdbed3dc3b01896797caea87bc;hb=0a29aaeb86cc31d808f88d8c9a046f5858ed3089;hp=1be6fa97ba6b7a7681b95560d06dc7295a285d93;hpb=94798b57ab67365ba0d44eb8ba7bddfb2281f8ef;p=anna.git diff --git a/example/diameter/launcher/resources/scripts/operation_signal.sh b/example/diameter/launcher/resources/scripts/operation_signal.sh index 1be6fa9..c6c15be 100755 --- a/example/diameter/launcher/resources/scripts/operation_signal.sh +++ b/example/diameter/launcher/resources/scripts/operation_signal.sh @@ -35,5 +35,8 @@ kill -s SIGUSR2 $PID # 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 +head --lines=-1 sigusr2.out +exception=$(grep exception sigusr2.out) +[ $? -eq 0 ] && _exit "(detected 'exception' within operation output)" +exit 0