def _executeSysCmd(cmd):
"""
Helper function to execute a system command
Input:
cmd: string, the command to be executed
Output:
plain string output of the result of the command as
received from STDOUT.
"""
try:
status,output = commands.getstatusoutput(cmd)
except Exception,e:
raise e
if status == 256:
return ''
return output
评论列表
文章目录