Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.0 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Scilab > Variables > Predefined variables > TMPDIR

TMPDIR

temporary directory path.

Description

The TMPDIR constant holds the temporary directory absolute path of a Scilab process. Each Scilab process has its own temporary directory, created and referenced to TMPDIR during Scilab startup. The temporary directory is deleted when Scilab stops.

The temporary directories are created as subdirectories of the system temporary directory and named SCI_TMP_<unique> where <unique> is some number generated at Scilab startup for the name to be unique. Under GNU/Linux, UNIX and Mac OS X, directory access rights are limited to the Scilab user.

The TMPDIR constant cannot be altered during Scilab execution. However, under GNU/Linux, UNIX and Mac OS X, the system temporary directory (usually /tmp) can be selected by altering the TMPDIR system variable.

Examples

ls TMPDIR
ls(TMPDIR)
cd(TMPDIR)

See also

  • SCIHOME — contains the path to preferences, history files of your Scilab session.
  • SCI — variable containing the value of the root path of Scilab.
Report an issue
<< SCIHOME Predefined variables home >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 14 15:02:38 CET 2017