diff -r 4ac12179ef23 -r 1035cecf3850 scripts/functions --- a/scripts/functions Wed May 21 22:00:52 2008 +0000 +++ b/scripts/functions Sun May 25 22:25:50 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()