(controller, cmd, *args)
Executes a subprocess in the background.
Executes a subprocess in the background.
Executes a subprocess in the background .
def exec_background(controller, cmd, *args):
    """Executes a subprocess in the background."""
    controller.logger.info("Executing in the background: {0} {1}",
                           cmd, " ".join(args))

    try:
        subprocess.Popen([cmd] + list(args),
                         stdout=open(os.devnull, "wb"),
                         stderr=open(os.devnull, "wb"))
    except OSError as err:
        controller.logger.error("Failed to execute process: {0}", err)
def exec_background ( controller , cmd , * args ) : controller . logger . info ( "Executing in the background: {0} {1}" , cmd , " " . join ( args ) ) try : subprocess . Popen ( [ cmd ] + list ( args ) , stdout = open ( os . devnull , "wb" ) , stderr = open ( os . devnull , "wb" ) ) except OSError as err : controller . logger . error ( "Failed to execute process: {0}" , err )