def make_value_from_shell(self, param, value_type, function):
try:<EOL><INDENT>value = check_output(param, shell=True).rstrip()<EOL><DEDENT>except CalledProcessError:<EOL><INDENT>if value_type == "<STR_LIT:bool>":<EOL><INDENT>value = False<EOL><DEDENT>else:<EOL><INDENT>if self.py3_wrapper:<EOL><INDENT>self.py3_wrapper.report_exception(<EOL>msg="<STR_LIT>" % param<EOL>)<EOL><DEDENT>self.notify_user("<STR_LIT>")<EOL>value = None<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if value_type == "<STR_LIT:bool>":<EOL><INDENT>value = True<EOL><DEDENT>else:<EOL><INDENT>value = value.decode("<STR_LIT:utf-8>")<EOL>value = self.value_convert(value, value_type)<EOL><DEDENT><DEDENT>return value<EOL>
run command in the shell