def run(self): command = "nxstartserver" self.sshService = NeXPyroSSH(self.user, self.hostname, command=command, getURI=True) uri = self.sshService.getURIfromQueue() if (uri == "UNSET"): print("SSH could not start NeXpyro service!") return False tokens = uri.split(":") port = int(tokens[2]) self.sshTunnel = NeXPyroSSH(self.user, self.hostname, localPort=self.localPort, remotePort=port) return True
def run(self): self.ssh = NeXPyroSSH(self.user, self.hostname, command=self.command)