#!/bin/sh BASIC_U= BASIC_P= SOURCE=http://localhost:9101/metrics DEST=http://localhost:9100/metrics IWANNASLEEP=15 alias pushmetrics="curl -s \"${SOURCE}\" | curl -u \"${BASIC_U}:${BASIC_P}\" --data-binary @- \"${DEST}\" >> /dev/null" pushmetrics sleep $IWANNASLEEP pushmetrics sleep $IWANNASLEEP pushmetrics