{
    "content": [
        {
            "type": "text",
            "text": "# mh-mkstemp(1) (man)\n\n**Summary:** mkstemp - create a temporary file\n\n**Synopsis:** /usr/lib/mh/mkstemp [-help] [-version] [-directory directory] [-prefix prefix] [-suffix suf‐\nfix]\n\n## See Also\n\n- mkstemp(3)\n- mkstemps(3)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (3 lines)\n- **DESCRIPTION** (15 lines)\n- **EXIT STATUS** (4 lines)\n- **PROFILE COMPONENTS** (2 lines)\n- **SEE ALSO** (2 lines)\n- **DEFAULTS** (7 lines)\n\n## Full Content\n\n### NAME\n\nmkstemp - create a temporary file\n\n### SYNOPSIS\n\n/usr/lib/mh/mkstemp [-help] [-version] [-directory directory] [-prefix prefix] [-suffix suf‐\nfix]\n\n### DESCRIPTION\n\nmkstemp creates a temporary file using mkstemp(3), or if the -suffix switch is available  and\nused,  mkstemps(3).   The  file name identifies a unique, newly created file, and always con‐\ntains 6 characters that appear to be random.\n\nThe -directory switch specifies a directory in which to create the file.\n\nThe -prefix switch specifies an initial part, before the 6 characters, of the file name.\n\nThe -suffix switch is only supported on platforms that provide the mkstemps(3) library  func‐\ntion.  It specifies a suffix to appear after the 6 characters; if it should begin with a spe‐\ncial character such as a period, that must be explicit in suffix.\n\nUnlike arguments to most switches of other nmh commands, the arguments  to  mkstemp  switches\ncan begin with a dash.\n\n### EXIT STATUS\n\nIf  mkstemp successfully creates the temporary file, it prints the file name on standard out‐\nput and exits with status 0.  On failure, it prints a diagnostic message  on  standard  error\nand exits with status 255.\n\n### PROFILE COMPONENTS\n\nNone\n\n### SEE ALSO\n\nmkstemp(3), mkstemps(3)\n\n### DEFAULTS\n\n-directory    current directory\n-prefix       none\n-suffix       none\n\n\n\nnmh-1.7.1                                    2014-03-16                              MH-MKSTEMP(1mh)\n\n"
        }
    ],
    "structuredContent": {
        "command": "mh-mkstemp",
        "section": "1",
        "mode": "man",
        "summary": "mkstemp - create a temporary file",
        "synopsis": "/usr/lib/mh/mkstemp [-help] [-version] [-directory directory] [-prefix prefix] [-suffix suf‐\nfix]",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "mkstemp",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/mkstemp/3/json"
            },
            {
                "name": "mkstemps",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/mkstemps/3/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 15,
                "subsections": []
            },
            {
                "name": "EXIT STATUS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "PROFILE COMPONENTS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DEFAULTS",
                "lines": 7,
                "subsections": []
            }
        ]
    }
}