You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash
- #
- # Prefixes all lines on stdout and stderr with the process name (as determined by
- # the SUPERVISOR_PROCESS_NAME env var, which is automatically set by Supervisor).
- #
- # Usage:
- # prefix-log command [args...]
- #
-
- exec 1> >(awk '{print "'"${SUPERVISOR_PROCESS_NAME}"' | "$0}' >&1)
- exec 2> >(awk '{print "'"${SUPERVISOR_PROCESS_NAME}"' | "$0}' >&2)
- exec "$@"
|