autoopts_back

mktemp - Make a Temporary File or Directory

Main
AutoGen
Pages

Home
Announce
FAQ
docs
XML Defs
testimonials
downloads

Automated
Options

AutoOpts
Comparison
Man example
Redistribute
Licensing
local use
using getopt

GCC's
Fixincludes

fixincludes

Automated
FSM

description
example
usagefsm

Addons
addon

Autoconf
Config
Tests

create form
M4 Quoting

Automated
XDR

xdr project

i

``mktemp'' is a minor variation on the verson from OpenBSD. It is being released because I rely on the suffix behavior and I would like to encourage the BSD version to pick up that attribute. You can find mktemp here.


mktemp Make a Temporary File or Directory

Here is the AutoGen-erated usage text:

mktemp - Make a temporary file name - Ver. 2.1
USAGE:  mktemp [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ <file-pat> ]
  Flg Arg Option-Name    Description
   -p Str tmpdir         temp directory for the file
   -b Str base           base of file name
   -s Str suffix         file name suffix
   -t no  deprecated-tmpdir place file in temp directory
                                - an alternate for tmpdir
   -c no  create         create file (default)
                                - may not be preset
   -u no  dry-run        Do not create anything
                                - an alternate for create
   -d no  directory      temporary directory
                                - an alternate for create

The following options are commonly used and are provided and supported
by AutoOpts:

  Flg Arg Option-Name    Description
   -V no  verbose        run program with progress info
   -q no  quiet          run without unnecessary output

version and help options:

  Flg Arg Option-Name    Description
   -v opt version        Output version information and exit
   -? no  help           Display usage information and exit
   -! no  more-help      Extended usage information passed thru pager
   -> opt save-opts      Save the option state to a config file
   -< Str load-opts      Load options from a config file
                                - disabled as --no-load-opts
                                - may appear multiple times

Options are specified by doubled hyphens and their name
or by a single hyphen and the flag character.

Makes a name suitable for use as the path name for a temporary file.
If successful, this program will create the output file (or directory).

The following option preset mechanisms are supported:
 - reading file /home/bkorb/.mktemprc
 - examining environment variables named MKTEMP_*

This program will create a new empty file according to a default or provided
file name pattern.  Unlike the now well-known BSD variation, by default
this program will create files and directories in temporary directories
instead of the current directory.

Parts of the name may be specified in ``<file-pat>'',
or with command line options.  These differ as follows:
@enumerate


The ``base'' option cannot specify the six (or more) substitution X-es.


The ``file-pat'' argument specifies the suffix by embedding six X-es
in the name.


You may not have both a ``base'' option and a ``file-pat'' argument.


If the ``file-pat'' specifies either a directory or a suffix, then
you must not provide the corresponding option.
@end enumerate

If successful, the program will exit with a zero status code and
print the name of the created file to stdout (unless ``--quiet'' has
been specified).

please send bug reports to:  autogen-user@lists.sf.net

Man Page for mktemp

Here is its own generated man page:


top  Viewable With Any Browser  SourceForge Logo   Support This Project   Valid XHTML 1.0!


AutoGen, AutoOpts, columns, getdefs, AutoFSM, AutoXDR and these web pages copyright (c) 1999-2002 Bruce Korb, all rights reserved.
Last modified: Sun Nov 8 10:02:32 PST 2009