mirror of
https://git.k-space.ee/arti/vt1200.git
synced 2026-11-01 12:14:56 +02:00
14 lines
460 B
Bash
Executable File
14 lines
460 B
Bash
Executable File
#!/bin/sh
|
|
# Heartbeat service for the VT1200 soak test.
|
|
#
|
|
# A LAT service that prints nothing is indistinguishable from a dead terminal
|
|
# (both look like a blank window). This prints a timestamp every 20 s so the
|
|
# screen tells us -- and the wire tells us -- whether the terminal is alive.
|
|
printf 'alive %s -- soak running\r\n' "$(date +%H:%M:%S)"
|
|
i=0
|
|
while :; do
|
|
i=$((i + 1))
|
|
sleep 20
|
|
printf 'alive %s tick %d\r\n' "$(date +%H:%M:%S)" "$i"
|
|
done
|