1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2010 - Digiteo - Vincent LIARD
6 * Copyright (C) 2012 - 2016 - Scilab Enterprises
8 * This file is hereby licensed under the terms of the GNU GPL v2.0,
9 * pursuant to article 5.3.4 of the CeCILL v.2.1.
10 * This file was originally licensed under the terms of the CeCILL v2.1,
11 * and continues to be available under such terms.
12 * For more information, see the COPYING file which you should have received
13 * along with this program.
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
17 xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml"
18 xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
19 xmlns:scilab="http://www.scilab.org" xml:id="TMPDIR" xml:lang="en">
21 <refname>TMPDIR</refname>
22 <refpurpose>temporary directory path.</refpurpose>
25 <title>Description</title>
27 The <literal>TMPDIR</literal> constant holds the temporary directory
28 absolute path of a Scilab process. Each Scilab process has its own
29 temporary directory, created and referenced to <literal>TMPDIR</literal>
30 during Scilab startup. The temporary directory is deleted when Scilab
33 <para>The temporary directories are created as subdirectories of the
34 system temporary directory and named SCI_TMP_<unique> where
35 <unique> is some number generated at Scilab startup for the name to
36 be unique. Under GNU/Linux, UNIX and Mac OS X, directory access rights are
37 limited to the Scilab user.
40 The <literal>TMPDIR</literal> constant cannot be altered during
41 Scilab execution. However, under GNU/Linux, UNIX and Mac OS X, the system
42 temporary directory (usually <literal>/tmp</literal>) can be selected by
43 altering the <literal>TMPDIR</literal> system variable.
46 <literal>dirname(TMPDIR)</literal> can be used as a general temporary directory,
47 without respect to any Scilab session.
51 <title>Examples</title>
52 <programlisting role="example"><![CDATA[
58 <refsection role="see also">
59 <title>See also</title>
60 <simplelist type="inline">
62 <link linkend="home">home</link>
65 <link linkend="SCIHOME">SCIHOME</link>
68 <link linkend="SCI">SCI</link>