Shell Environment Variables/en: Unterschied zwischen den Versionen
Cg (Diskussion | Beiträge) |
Cg (Diskussion | Beiträge) |
||
| Zeile 14: | Zeile 14: | ||
All per-session temporary files are created in this one temporary folder, to make it easier to cleanup leftover session files. Actually, if no expecco/Smalltalk is running, all temporary files folders named "stx_tmp_xxx" can be removed without danger (although temp-file cleanup is typically done automatically by the operating system in regular intervals) |
All per-session temporary files are created in this one temporary folder, to make it easier to cleanup leftover session files. Actually, if no expecco/Smalltalk is running, all temporary files folders named "stx_tmp_xxx" can be removed without danger (although temp-file cleanup is typically done automatically by the operating system in regular intervals) |
||
The name of the temporary folder can be retrieved by evaluating and printing: |
|||
Filename tempDirectory |
|||
("printIt" in a Smalltalk workspace). |
|||
=== Script Interpreters for External Language Scripts === |
=== Script Interpreters for External Language Scripts === |
||
Version vom 31. Mai 2018, 10:40 Uhr
Shell Environment Variables
A number of shell environment variables are used (if present) by expecco and/or the underlying Smalltalk runtime system. Their existance is not a prerequisite to run expecco: default values will be used, if those variables are not present.
Temporary Files Folder
Expecco (and Smalltalk) may create temporary files, which may outlive your session, in case of an abnormal termination (or in case a suite fails to cleanup temporary files correctly).
By default, temporary files are created inside a per-session temporary folder. This per-session temporary folder is named "stx_tmp_xxxx" and is created in the tempdir folder. The tempdir folder is specified by any of: STX_TMPDIR, TMP_DIR, TEMP_DIR, TMPDIR or TEMPDIR, whichever is found in the shell environment. If none of the above is found in the shell environment, "/tmp" is used as tempdir.
All per-session temporary files are created in this one temporary folder, to make it easier to cleanup leftover session files. Actually, if no expecco/Smalltalk is running, all temporary files folders named "stx_tmp_xxx" can be removed without danger (although temp-file cleanup is typically done automatically by the operating system in regular intervals)
The name of the temporary folder can be retrieved by evaluating and printing:
Filename tempDirectory
("printIt" in a Smalltalk workspace).
Script Interpreters for External Language Scripts
If no script interpreter was defined in the settings dialog, fallbacks can be provided by the following shell variables:
- CMD_SHELL (batch scripts; defaults to "cmd")
- SHELL (shell commands and shell scripts; defaults to "bash" or "sh", whichever is found)
- GNUPLOT_SHELL (gnuplot scripts; defaults to "gnuplot")
- NODEJS_SHELL (node.js scripts; defaults to "node")
- PERL_SHELL (perl scripts; defaults to "perl")
- POWERSHELL (powershell scripts; defaults to "powershell" or "pwsh", whichever is found)
- PYTHON_SHELL (python scripts; defaults to "python")
- RSCRIPT_SHELL ('R' scripts; defaults to "R.exe" on Windows, "r" on OSX, "R" on Unix/Linux)
- RUBY_SHELL (ruby scripts; defaults to "ruby")
- TCL_SHELL (tcl scripts; defaults to "tclsh")
PYTHON_SHELL,