#!/bin/bash
echo "$*"
OUTPUT=`$* 2>&1`
if [ $? -ne 0 ]
then
    echo "ERROR: $OUTPUT" 1>&2
    exit
fi
echo $OUTPUT
