code: def get_cmd_output(*args, encoding: str = SYS_ENCODING) -> str:
      
      log.debug("get_cmd_output(): args = {!r}", args)
      p = subprocess.Popen(args, stdout=subprocess.PIPE)
      stdout, stderr = p.communicate()
      return stdout.decode(encoding, errors='ignore')
docs: Returns text output of a command.