diff -r 4ac12179ef23 -r ef7dd7893e54 scripts/functions --- a/scripts/functions Wed May 21 22:00:52 2008 +0000 +++ b/scripts/functions Mon Jun 16 13:04:53 2008 +0000 @@ -105,6 +105,14 @@ return 0 } +# Execute an action, and log its messages +# Usage: CT_DoExecLog <[VAR=val...] command [parameters...]> +CT_DoExecLog() { + local level="$1" + shift + eval "$@" 2>&1 |CT_DoLog "${level}" +} + # Tail message to be logged whatever happens # Usage: CT_DoEnd CT_DoEnd()