2015-01-30 22:29:09 +00:00
|
|
|
.Dd January 30, 2015
|
2015-01-31 13:20:02 +00:00
|
|
|
.Dt MKTEMP 1
|
2015-01-31 19:37:03 +00:00
|
|
|
.Os sbase
|
2015-01-30 22:29:09 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm mktemp
|
|
|
|
.Nd make temporary filename
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl dq
|
|
|
|
.Op Ar template
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-01-31 13:43:27 +00:00
|
|
|
takes the given filename template and overwrites a portion of it to create a
|
|
|
|
unique filename. The template may be any filename with at least six `Xs'
|
|
|
|
appended to it. If no template is specified a default of `tmp.XXXXXXXXXX' is
|
|
|
|
used and the tmpdir is set to `/tmp' unless the TMPDIR envrionment variable
|
|
|
|
has been set.
|
2015-01-30 22:29:09 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl d
|
2013-11-12 11:52:28 +00:00
|
|
|
Make a directory instead of a file
|
2015-01-30 22:29:09 +00:00
|
|
|
.It Fl q
|
2015-01-31 13:43:27 +00:00
|
|
|
Fail silently if an error occurs. This is useful if a script
|
2013-11-13 12:10:49 +00:00
|
|
|
does not want error output to go to standard error.
|
2015-01-30 22:29:09 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr mkdtemp 3 ,
|
|
|
|
.Xr mkstemp 3
|