Difference between revisions of "SET TMPNAMPATH"

From Lianjapedia
Jump to: navigation, search
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Determines whether the full path is included for temporary file name functions
 
Determines whether the full path is included for temporary file name functions
 
  
 
==Syntax==
 
==Syntax==
 
SET TMPNAMPATH ON | OFF | (<expL>)
 
SET TMPNAMPATH ON | OFF | (<expL>)
 
  
 
==See Also==
 
==See Also==
[[DB_TMPDIR]], [[GETENV()]], [[GETGID()]], [[GETUID()]], [[GETPID()]], [[RAND()]], [[SET TMPDIR]], [[SYS()]], [[TMPNAM()]]
+
[[GETENV()]], [[GETGID()]], [[GETUID()]], [[GETPID()]], [[RAND()]], [[SET TMPDIR]], [[SYS()]], [[TMPDIR()]], [[TMPNAM()]]
 
+
  
 
==Description==
 
==Description==
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.  Note: unique filenames cannot be guaranteed if SET TMPNAMPATH is OFF.
 
+
This set command was introduced in Recital 10.0.3.  Note: unique filenames cannot be guaranteed if SET TMPNAMPATH is OFF.
+
 
+
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
? getenv([DB_TMPDIR])
 
/usr/tmp
 
 
? tmpnam()
 
? tmpnam()
/usr/tmp/_00000a7a0001.tmp
+
C:\Users\Me\AppData\Local\Temp\_00000a7a0001.tmp
 
set tmpnampath off
 
set tmpnampath off
 
? tmpnam()
 
? tmpnam()
Line 28: Line 20:
 
</code>
 
</code>
  
 
==Products==
 
Recital, Recital Server
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Set_Commands|TMPNAMPATH]]
 
[[Category:Set_Commands|TMPNAMPATH]]
[[Category:Environment]]
 
[[Category:Environment Set Commands]]
 

Latest revision as of 10:01, 3 January 2013

Purpose

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

Syntax

SET TMPNAMPATH ON | OFF | (<expL>)

See Also

GETENV(), GETGID(), GETUID(), GETPID(), RAND(), SET TMPDIR, SYS(), TMPDIR(), 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. Note: unique filenames cannot be guaranteed if SET TMPNAMPATH is OFF.

Example

? tmpnam()
C:\Users\Me\AppData\Local\Temp\_00000a7a0001.tmp
set tmpnampath off
? tmpnam()
_00000a7a0002.tmp