74 stdOutFile=tempfile.TemporaryFile(bufsize=0)
75 stdErrFile=tempfile.TemporaryFile(bufsize=0)
76 cmdHdl=sp.Popen(cmd,shell=
True,stdout=stdOutFile,stderr=stdErrFile)
79 while cmdHdl.returncode ==
None and t<TIME_OUT:
83 if t >= TIME_OUT
and not cmdHdl.returncode:
86 debugMsg(2,
"Execution timed out on Command: '%s'" % cmd)
88 DEBUG
and debugMsg(1,
"Execution timed out on Command: '%s' but it ended while trying to kill it, adjust timer" % cmd)
90 DEBUG
and debugMsg(0,
"End of Execution cicle of Command: '%s' " % cmd)
93 return (stdOutFile,stdErrFile,cmdHdl.returncode)