Difference between revisions of "TMPDIR()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to return the current temporary file directory location | Function to return the current temporary file directory location | ||
− | |||
==Syntax== | ==Syntax== | ||
TMPDIR() | TMPDIR() | ||
− | |||
==See Also== | ==See Also== | ||
[[DB_TMPDIR]], [[SET TMPDIR]], [[SYS()]] | [[DB_TMPDIR]], [[SET TMPDIR]], [[SYS()]] | ||
− | |||
==Description== | ==Description== | ||
The TMPDIR() function is used to return the current temporary file directory location. The DB_TMPDIR environment variable sets the location. It can be overriden using the SET TMPDIR command. | The TMPDIR() function is used to return the current temporary file directory location. The DB_TMPDIR environment variable sets the location. It can be overriden using the SET TMPDIR command. | ||
− | |||
==Example== | ==Example== | ||
Line 22: | Line 18: | ||
? tmpdir() | ? tmpdir() | ||
</code> | </code> | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Environment]] | [[Category:Environment]] | ||
− | [[Category:Environment | + | [[Category:Environment Functions]] |
Revision as of 08:08, 7 December 2012
Contents
Purpose
Function to return the current temporary file directory location
Syntax
TMPDIR()
See Also
Description
The TMPDIR() function is used to return the current temporary file directory location. The DB_TMPDIR environment variable sets the location. It can be overriden using the SET TMPDIR command.
Example
? getenv([DB_TMPDIR]) ? tmpdir() set tmpdir to "/usr/tmp/" ? tmpdir()