{
    "content": [
        {
            "type": "text",
            "text": "# waitpid (perldoc)\n\n## TLDR\n\n> Wait for the termination of arbitrary processes.\n\n- Sleep until all processes whose PIDs have been specified have exited:\n  `waitpid {{pid1 pid2 ...}}`\n- Sleep for at most `n` seconds:\n  `waitpid {{-t|--timeout}} {{n}} {{pid1 pid2 ...}}`\n- Do not error if specified PIDs have already exited:\n  `waitpid {{-e|--exited}} {{pid1 pid2 ...}}`\n- Sleep until `n` of the specified processes have exited:\n  `waitpid {{-c|--count}} {{n}} {{pid1 pid2 ...}}`\n- Display help:\n  `waitpid {{-h|--help}}`\n\n*Source: tldr-pages*\n\n---\n\n## Full Content\n\n"
        }
    ],
    "structuredContent": {
        "command": "waitpid",
        "section": "-f",
        "mode": "perldoc",
        "summary": null,
        "synopsis": null,
        "tldr_summary": "Wait for the termination of arbitrary processes.",
        "tldr_examples": [
            {
                "description": "Sleep until all processes whose PIDs have been specified have exited",
                "command": "waitpid {{pid1 pid2 ...}}"
            },
            {
                "description": "Sleep for at most `n` seconds",
                "command": "waitpid {{-t|--timeout}} {{n}} {{pid1 pid2 ...}}"
            },
            {
                "description": "Do not error if specified PIDs have already exited",
                "command": "waitpid {{-e|--exited}} {{pid1 pid2 ...}}"
            },
            {
                "description": "Sleep until `n` of the specified processes have exited",
                "command": "waitpid {{-c|--count}} {{n}} {{pid1 pid2 ...}}"
            },
            {
                "description": "Display help",
                "command": "waitpid {{-h|--help}}"
            }
        ],
        "tldr_source": "official",
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": []
    }
}