(self, args, timeout=600)
| 22 | import os |
| 23 | class bash: |
| 24 | def __init__(self, args, timeout=600): |
| 25 | self.args = args |
| 26 | logging.debug("execute:%s"%args) |
| 27 | self.timeout = timeout |
| 28 | self.process = None |
| 29 | self.success = False |
| 30 | self.run() |
| 31 | |
| 32 | def run(self): |
| 33 | class Alarm(Exception): |