diff --git a/src/mad/sh/scripts_common.sh b/src/mad/sh/scripts_common.sh index edda6d63c5..2fa24db3c0 100644 --- a/src/mad/sh/scripts_common.sh +++ b/src/mad/sh/scripts_common.sh @@ -149,6 +149,33 @@ function exec_and_log fi } +# This function executes $1 and returns stdout +# If a second parameter is present it is used as the error message when +# the command fails +function monitor_and_log +{ + EXEC_OUT=`bash -s 2>/dev/null <