| 22 | self.name = name |
| 23 | |
| 24 | def print_one(self): |
| 25 | if self.c.recv_ready(): |
| 26 | try: |
| 27 | res = self.c.recv(4096).decode().splitlines() |
| 28 | for l in res: |
| 29 | print("@%-10s" % self.name,l.strip()) |
| 30 | except: |
| 31 | pass |
| 32 | |
| 33 | if self.c.recv_stderr_ready(): |
| 34 | res = self.c.recv_stderr(4096).decode().splitlines() |
| 35 | for l in res: |
| 36 | print("@%-10s" % self.name,l.strip()) |
| 37 | |
| 38 | if self.c.exit_status_ready(): |
| 39 | print("exit ",self.name) |
| 40 | return False |
| 41 | |
| 42 | return True |
| 43 | |
| 44 | def check_keywords(lines,keywords,black_keywords): |
| 45 | match = [] |