Files
vt1200/lat/probe/heartbeat.sh
T

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