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