Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MH-MKSTEMP(1)		    General Commands Manual		 MH-MKSTEMP(1)

NAME
       mkstemp - create	a temporary file

SYNOPSIS
       /usr/local/libexec/nmh/mkstemp [-help] [-version] [-directory direc-
	    tory] [-prefix prefix] [-suffix suffix]

DESCRIPTION
       mkstemp creates a temporary file	using mkstemp(3), or  if  the  -suffix
       switch  is available and	used, mkstemps(3).  The	file name identifies a
       unique, newly created file, and always contains 6 characters  that  ap-
       pear to be random.

       The  -directory	switch	specifies  a  directory	in which to create the
       file.

       The -prefix switch specifies an initial part, before the	6  characters,
       of the file name.

       The  -suffix switch is only supported on	platforms that provide the mk-
       stemps(3) library function.  It specifies a suffix to appear after  the
       6 characters; if	it should begin	with a special character such as a pe-
       riod, that must be explicit in suffix.

       Unlike arguments	to most	switches of other nmh commands,	the  arguments
       to mkstemp switches can begin with a dash.

EXIT STATUS
       If  mkstemp successfully	creates	the temporary file, it prints the file
       name on standard	output and exits with status 0.	 On failure, it	prints
       a diagnostic message on standard	error and exits	with status 255.

PROFILE	COMPONENTS
       None

SEE ALSO
       mkstemp(3), mkstemps(3)

DEFAULTS
       -directory    current directory
       -prefix	     none
       -suffix	     none

nmh-1.7.1			  2014-03-16			 MH-MKSTEMP(1)

NAME | SYNOPSIS | DESCRIPTION | EXIT STATUS | PROFILE COMPONENTS | SEE ALSO | DEFAULTS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=mh-mkstemp&sektion=1&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help