I have a statement like this:
RUN_COMMAND=`eval "$COMMAND"` > /dev/null
echo "Output of the command:"$RUN_COMMAND
Here if java doesn't exist in the system it throws some output like
no java in (/usr/local/bin:/usr/bin:)
And I don't want this to be on the console.
So, even after redirecting the output to /dev/null it's still sending the output to the console.