def run_command()

in scripts/elf_ubuntu_dependency_analyzer.py [0:0]


def run_command(command):
    """
    Execute a shell command and return its output.

    Args:
    command (list): The command to execute as a list of strings.

    Returns:
    str: The output of the command, or None if an error occurred.
    """
    try:
        return subprocess.check_output(command, stderr=subprocess.STDOUT).decode('utf-8')
    except subprocess.CalledProcessError as e:
        print(f"Error running command {' '.join(command)}: {e.output.decode('utf-8').strip()}")
        return None