def raw_input(self, prompt=""): if not self.proxy: raise EOFError if self.pre_prompt and prompt: prompt = '%s+%s' % (self.pre_prompt, prompt) s1 = self.proxy.raw_input(prompt) if s1.strip() and self.loged: if OUT_LOG_FUNC: rpc.spawn(OUT_LOG_FUNC, self.proxy.get_addr(), s1) else: logging.warn('RpcShell.raw_input:%s', s1) if self.loged and s1 == '<<': raise EOFError return s1
def start(self): self._task = rpc.spawn(self.interact)
def start(self): self._hb_time = time.time() sys.settrace(self._globaltrace) self._hb_task = rpc.spawn(self._heartbeat)