CCP4 web logo CCP4i: Graphical User Interface
Documentation for Programmers
GetTmpFileName

next button previous button top button

NAME

GetTmpFileName - generate appropriate unique name for a temporary file

SYNOPSIS

GetTmpFileName args

Optional arguments:

-ext extension
-defdir directory_alias
-dir directory_path

DESCRIPTION

Return a suitable name for a temporary file to be used in a run script, automatically identifying the job the file belongs to. The file root name will be a composite of the project name, job number, and a file number with the optional extension appended. The file extension will always be '.tmp'. If the -ext argument is used, the file name has the form project_jobid_filenumber_extension.tmp. Generally extension should be the standard extension for the file type of the intended temporary file - for example 'mtz' or 'map'. By default the file will be given the directory path of the scratch directory (CCP4i TEMPORARY, usually corresponding to $CCP4_SCR), but if an alternative directory alias directory_alias or full path name directory_path is given, they will be used instead.

Note that this routine does not open the file.

KEYWORDS