Send a single command to the shell. This method adds the end-of-query terminator (';').
(self, cmd)
| 280 | return self.shell_process.pid |
| 281 | |
| 282 | def send_cmd(self, cmd): |
| 283 | """Send a single command to the shell. This method adds the end-of-query |
| 284 | terminator (';'). """ |
| 285 | self.shell_process.stdin.write("%s;\n" % cmd) |
| 286 | self.shell_process.stdin.flush() |
| 287 | # Allow fluent-style chaining of commands |
| 288 | return self |
| 289 | |
| 290 | def wait_for_query_start(self): |
| 291 | """If this shell was started with the '-q' option, this mathod will block until the |