We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1af87d commit 3f2fb11Copy full SHA for 3f2fb11
infrastructure/kctf/base/challenge-skeleton/healthcheck/exploit/run.sh
@@ -5,12 +5,17 @@ set -Eeuo pipefail
5
TIMEOUT=20
6
PERIOD=30
7
8
+export TERM=linux
9
+export TERMINFO=/etc/terminfo
10
+
11
while true; do
12
source /config/env
13
+ echo -n "[$(date)] "
14
if timeout "${TIMEOUT}" /exploit/doit.py; then
- echo 'ok' > /tmp/healthz
15
+ echo 'ok' | tee /tmp/healthz
16
else
- echo 'err' > /tmp/healthz
17
+ echo -n "$? "
18
+ echo 'err' | tee /tmp/healthz
19
fi
20
sleep "${PERIOD}"
21
done
0 commit comments