#!/bin/sh set -eu set -o pipefail _b=$(basename $1) "$@" 2>&1 \ | awk "{print strftime(\"%b %d %H:%M:%S `hostname -s` info $_b[$$] \"), \$0; fflush();}" \ | tee -a "/var/log/$_b.cron.log"