def attach_run_command(cmd):
    """
        Run a command when attaching

        Please do not call directly, this will execvp the command.
        This is to be used in conjunction with the attach method
        of a container.
    """
    if isinstance(cmd, tuple):
        return _lxc.attach_run_command(cmd)
    elif isinstance(cmd, list):
        return _lxc.attach_run_command((cmd[0], cmd))
    else:
        return _lxc.attach_run_command((cmd, [cmd]))
def attach_run_command ( cmd ) : if isinstance ( cmd , tuple ) : return _lxc . attach_run_command ( cmd ) elif isinstance ( cmd , list ) : return _lxc . attach_run_command ( ( cmd [ 0 ] , cmd ) ) else : return _lxc . attach_run_command ( ( cmd , [ cmd ] ) )
Run a command when attaching

        Please do not call directly, this will execvp the command.
        This is to be used in conjunction with the attach method
        of a container.