execute a command with timeout in python
[code="python"]
class Command(threading.Thread):
def __init__(self, command, cwd=None, writeConsole=True, timeout=60):
threading.Thread.__init__(self)
self.command = command
...
原创
2014-01-05 14:25:28 ·
232 阅读 ·
0 评论