IRAF help page for package language, program mktemp

from NOAO mktemp -- make a unique file nameUSAGEPARAMETERSDESCRIPTIONEXAMPLESBUGS

mktemp -- make a unique file name


USAGE

mktemp root


PARAMETERS

root

.br The root (prefix) for the generated filename.


DESCRIPTION

Mktemp returns a unique filename string which may be used to create a temporary file name. The string is the concatenation of three elements: the input argument, the process id, and a final character which changes on each call.


EXAMPLES

1. Create a unique filename with the root "sav" in the logical directory "tmp".

savefile = mktemp ("tmp$sav")


BUGS

Since some time may elapse between the creation of the filename and the creation of a file with that name, there is no guarantee that the name will still be unique when it is actually used, however the algorithm used to generate the name makes filename collisions unlikely.


This page automatically generated from the iraf .hlp file. If you would like your local iraf package .hlp files converted into HTML please contact Dave Mills at NOAO.

dmills@noao.edu