parameters: (cmdLine)
return_statement: return str(resBytes,encoding="ascii")
docstring: return output of a command in a string
docstring_summary: return output of a command in a string
docstring_tokens: return output of a command in a string
function: def getCmdResult(cmdLine):
      """return output of a command in a string"""
      res = None
      try:
          resBytes = subprocess.check_output(cmdLine, stderr=subprocess.STDOUT)
      except subprocess.CalledProcessError as e:
          resBytes = e.output
      return str(resBytes,encoding="ascii")
function_tokens: def getCmdResult ( cmdLine ) : res = None try : resBytes = subprocess . check_output ( cmdLine , stderr = subprocess . STDOUT ) except subprocess . CalledProcessError as e : resBytes = e . output return str ( resBytes , encoding = "ascii" )