Re: How to change ENVI tmp folder in IDL [message #81505] |
Mon, 01 October 2012 04:43 |
Yngvar Larsen
Messages: 134 Registered: January 2010
|
Senior Member |
|
|
On Saturday, 29 September 2012 06:24:02 UTC+2, Danxia wrote:
> Hi All, I'm using IDL+ENVI on a linux server. Due to the limitation of space on the server, if the tmp folder of ENVI gets full, other people can't run their code. And I'm not the administrator of server, so I can't empty the temp folder. So I'm wondering if there's a way to set my own tmp folder of ENVI through IDL code, something like set tmp dir to a given folder? Thank you very much.
Solution #1:
On linux, IDL/ENVI will honor the environment variable TMPDIR. So, assuming your shell is bash, just put
export TMPDIR=/my/personal/tmp/dir/
in your .bashrc.
Solution #2:
For IDL, there is also an IDL preference IDL_TMPDIR that you can set (with PREF_SET) to override (?) the TMPDIR unix environment variable. Most likely, there is something similar for ENVI.
--
Yngvar
|
|
|