| 38 def launch(self): |
38 def launch(self): |
| 39 cmd=self.construct_cmdline() |
39 cmd=self.construct_cmdline() |
| 40 |
40 |
| 41 logging.info('Launching ' + str(cmd)) |
41 logging.info('Launching ' + str(cmd)) |
| 42 |
42 |
| 43 self.proc=Popen(cmd, stdout=PIPE, stderr=PIPE, stdin=None) |
43 self.proc=Popen(cmd, stdout=PIPE, stderr=PIPE, stdin=PIPE) |
| |
44 |
| |
45 # We don't do password input etc. |
| |
46 self.proc.stdin.close() |
| 44 |
47 |
| 45 def read_result(self): |
48 def read_result(self): |
| 46 stream=self.proc.stdout |
49 stream=self.proc.stdout |
| 47 line=stream.read(-1) |
50 line=stream.read(-1) |
| 48 if line==b'': |
51 if line==b'': |