Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 def run(self):
     self.ssh = NeXPyroSSH(self.user, self.hostname, command=self.command)