#!/bin/bash

function Run_Command {
	command=$1
	Write_Log "Run command $command ...  "
	{ stderr=$( (eval "$command") 2>&1 1>&3-) ;} 3>&1
	rc=$?
	if [[ $rc -eq 0 ]]
	then
		Write_Log "ok"
	else
		Write_Log "failed"
		Write_Log "Error details: $stderr" "ERROR"
	fi
	return $rc
}
