{
    "content": [
        {
            "type": "text",
            "text": "# envdir (man)\n\n## NAME\n\nenvdir - runs another program with environment modified according to files in a specified di‐ rectory.\n\n## SYNOPSIS\n\nenvdir d child\n\n## DESCRIPTION\n\nd is a single argument.  child consists of one or more arguments.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **EXIT CODES**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "envdir",
        "section": "",
        "mode": "man",
        "summary": "envdir - runs another program with environment modified according to files in a specified di‐ rectory.",
        "synopsis": "envdir d child",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "supervise",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/supervise/8/json"
            },
            {
                "name": "svc",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/svc/8/json"
            },
            {
                "name": "svok",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/svok/8/json"
            },
            {
                "name": "svstat",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/svstat/8/json"
            },
            {
                "name": "svscanboot",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/svscanboot/8/json"
            },
            {
                "name": "svscan",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/svscan/8/json"
            },
            {
                "name": "readproctitle",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/readproctitle/8/json"
            },
            {
                "name": "fghack",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/fghack/8/json"
            },
            {
                "name": "pgrphack",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pgrphack/8/json"
            },
            {
                "name": "multilog",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/multilog/8/json"
            },
            {
                "name": "tai64n",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/tai64n/8/json"
            },
            {
                "name": "tai64nlocal",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/tai64nlocal/8/json"
            },
            {
                "name": "setuidgid",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/setuidgid/8/json"
            },
            {
                "name": "envuidgid",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/envuidgid/8/json"
            },
            {
                "name": "softlimit",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/softlimit/8/json"
            },
            {
                "name": "setlock",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/setlock/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "EXIT CODES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 9,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "envdir - runs another program with environment modified according to files in a specified di‐\nrectory.\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "envdir d child\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "d is a single argument.  child consists of one or more arguments.\n\nenvdir sets various environment variables as specified by files in the directory named d.  It\nthen runs child.\n\nIf  d  contains  a file named s whose first line is t, envdir removes an environment variable\nnamed s if one exists, and then adds an environment variable named s with value t.  The  name\ns  must not contain =. Spaces and tabs at the end of t are removed. Nulls in t are changed to\nnewlines in the environment variable.\n\nIf the file s is completely empty (0 bytes long),  envdir  removes  an  environment  variable\nnamed s if one exists, without adding a new variable.\n",
                "subsections": []
            },
            "EXIT CODES": {
                "content": "envdir  exits 111 if it has trouble reading d, if it runs out of memory for environment vari‐\nables, or if it cannot run child.  Otherwise its exit code is the same as that of child.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "supervise(8),  svc(8),  svok(8),  svstat(8),  svscanboot(8),   svscan(8),   readproctitle(8),\nfghack(8),  pgrphack(8),  multilog(8), tai64n(8), tai64nlocal(8), setuidgid(8), envuidgid(8),\nsoftlimit(8), setlock(8)\n\nhttp://cr.yp.to/daemontools.html\n\n\n\nenvdir(8)",
                "subsections": []
            }
        }
    }
}