#!/bin/sh PORT=${1:-5432} # eloop pattern cd $(dirname $(readlink -f $0)) while sleep 1; do nc -lvv -p $PORT -e ./handle_request && logger "successfully built retiolum hosts tarball" done