Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Run a command and piece out the console output.

src/s/e/serverondemand-0.0.2/serverondemand/demand.py   serverondemand(Download)
        executor = Executor(self.server.accessIPv4, 'root', self.key, debug = self.debug)
 
        res = executor.run("/root/bootstrap.sh")
        logger.debug("Bootstrap script: %s" % res)
 
        logger.info("Running user script.sh detatched.")
        if self.script:
            res = executor.run("nohup /root/script.sh")