def daemonize_script(self, script, args): """Call MaxiNet Script (non-blocking) Args: cmd: name of script to call """ cmd = Tools.get_script_dir() + script + " " + args p = subprocess.Popen(cmd, shell=True) atexit.register(p.terminate)
def daemonize_script(self, script, args): """Call MaxiNet Script (non-blocking) Args: cmd: name of script to call """ cmd = Tools.get_script_dir()+script+" "+args p = subprocess.Popen(cmd, shell=True) atexit.register(p.terminate)
def script_check_output(self, cmd): """Call MaxiNet Script and return output Args: cmd: name of script to call Returns: Shell output of script """ # Prefix command by our worker directory cmd = Tools.get_script_dir() + cmd return self.check_output(cmd)