projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automate script
[anna.git]
/
example
/
diameter
/
launcher
/
resources
/
scripts
/
operation_signal.sh
diff --git
a/example/diameter/launcher/resources/scripts/operation_signal.sh
b/example/diameter/launcher/resources/scripts/operation_signal.sh
index
1be6fa9
..
c6c15be
100755
(executable)
--- 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
# 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