1MH-MKSTEMP(1) General Commands Manual MH-MKSTEMP(1)
2
3
4
6 mkstemp - create a temporary file
7
9 /usr/libexec/nmh/mkstemp [-help] [-version] [-directory directory]
10 [-prefix prefix] [-suffix suffix]
11
13 mkstemp creates a temporary file using mkstemp(3), or if the -suffix
14 switch is available and used, mkstemps(3). The file name identifies a
15 unique, newly created file, and always contains 6 characters that
16 appear to be random.
17
18 The -directory switch specifies a directory in which to create the
19 file.
20
21 The -prefix switch specifies an initial part, before the 6 characters,
22 of the file name.
23
24 The -suffix switch is only supported on platforms that provide the
25 mkstemps(3) library function. It specifies a suffix to appear after
26 the 6 characters; if it should begin with a special character such as a
27 period, that must be explicit in suffix.
28
29 Unlike arguments to most switches of other nmh commands, the arguments
30 to mkstemp switches can begin with a dash.
31
33 If mkstemp successfully creates the temporary file, it prints the file
34 name on standard output and exits with status 0. On failure, it prints
35 a diagnostic message on standard error and exits with status 255.
36
38 None
39
41 mkstemp(3), mkstemps(3)
42
44 -directory current directory
45 -prefix none
46 -suffix none
47
48
49
50nmh-1.7.1 2014-03-16 MH-MKSTEMP(1)