Martin Schröder wrote:
2008/5/23 Hans Hagen
: sure, but it depends on tmp being cleaned up too; afaik /tmp and c:/temp are only cleaned up periodically e.g. when one runs out of space so it's a kind of indication of 'may be cleaned up'
Many Unixes clear /tmp at bootup. Even SUSE can do this. :-)
http://en.wikipedia.org/wiki/Temporary_directory "In Unix and Linux, the global temporary directories are /tmp and /var/tmp. Typically, /var/tmp is for more permanent files, and /tmp is for more temporary files. See Filesystem Hierarchy Standard. In addition, a user can set his TMPDIR environment variable to point to a preferred directory (where the creation and modification of files is allowed)."
so then checking for TMPDIR should precece TMP ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------