Difference between revisions of "SET TMPNAMPATH"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 14: Line 14:
 
The SET TMPNAMPATH command determines whether the full path is included for the temporary file name functions [[TMPNAM()]] and [[SYS()|SYS(3)]].  If SET TMPNAMPATH is ON (default), SYS(3) and TMPNAM() will return filenames including the full path.  If SET TMPNAMPATH is OFF, only the base filename will be returned.  The directory path is determined by the [[DB_TMPDIR]] environment variable.
 
The SET TMPNAMPATH command determines whether the full path is included for the temporary file name functions [[TMPNAM()]] and [[SYS()|SYS(3)]].  If SET TMPNAMPATH is ON (default), SYS(3) and TMPNAM() will return filenames including the full path.  If SET TMPNAMPATH is OFF, only the base filename will be returned.  The directory path is determined by the [[DB_TMPDIR]] environment variable.
  
This set command was introduced in Recital 10.0.3.
+
This set command was introduced in Recital 10.0.3.  Note: unique filenames cannot be guaranteed if SET TMPNAMPATH is OFF.
  
  

Latest revision as of 08:13, 28 July 2011

Purpose

Determines whether the full path is included for temporary file name functions


Syntax

SET TMPNAMPATH ON | OFF | (<expL>)


See Also

DB_TMPDIR, GETENV(), GETGID(), GETUID(), GETPID(), RAND(), SET TMPDIR, SYS(), TMPNAM()


Description

The SET TMPNAMPATH command determines whether the full path is included for the temporary file name functions TMPNAM() and SYS(3). If SET TMPNAMPATH is ON (default), SYS(3) and TMPNAM() will return filenames including the full path. If SET TMPNAMPATH is OFF, only the base filename will be returned. The directory path is determined by the DB_TMPDIR environment variable.

This set command was introduced in Recital 10.0.3. Note: unique filenames cannot be guaranteed if SET TMPNAMPATH is OFF.


Example

? getenv([DB_TMPDIR])
/usr/tmp
? tmpnam()
/usr/tmp/_00000a7a0001.tmp
set tmpnampath off
? tmpnam()
_00000a7a0002.tmp


Products

Recital, Recital Server