def runShell(cmd):
    try:
        (status, output) = commands.getstatusoutput(cmd)
    except Exception, e:
        return (1, "")
    # write shell and shell's result into shelllog

    return status, output

相关文章:

  • 2021-12-21
  • 2022-12-23
  • 2021-12-21
  • 2021-06-23
  • 2021-12-21
  • 2022-01-02
猜你喜欢
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2022-01-02
  • 2021-12-21
相关资源
相似解决方案