#!/usr/bin/env bash set -euo pipefail latency="$(ping -c 5 uptime.benpro.fr | awk '{print $4}' | tail -1 | cut -d'/' -f2) ms" URI="https://status.benpro.fr/api/push/?msg=OK&ping=${latency}" /usr/bin/curl -s -o /dev/null "$URI"