Thursday, May 3, 2012

More on Lotus Notes and temporary directories

Had an interesting discussion regarding an earlier blog post: -

Lotus Notes 8.5.3 on Apple Mac OSX - Where do your temp files go to, my lovely ? 

It *IS* possible to change the location of temporary files, via this NOTES.INI setting: -

NOTES_TEMPDIR=

I set this on my own machine ( I'm using Notes Standard 8.5.4 CD3 ), and had previously created a directory: -

$ mkdir /tmp/Notes

Therefore, I set the parameter: -

NOTES_TEMPDIR=/tmp/Notes

in: -

/Users/david_hay/Library/Preferences/Notes Preferences

( which is the Mac equivalent of NOTES.INI ).

Previously, Notes was storing temporary files here: -

/var/folders/g_/zl9kplwd7hg2fcwh5qrpdwbh0000gn/T/TemporaryItems/notes/

but, since the restart, I can see that no new files have been added to that location, with everything now being written to the new temporary directory.

$ ls -altrc /tmp/Notes/notes/

total 360
drwxr-xr-x   3 david_hay  wheel    102  3 May 14:05 ..
-rw-r--r--@  1 david_hay  wheel    520  3 May 14:05 ~notetp2.reg
-rw-r--r--@  1 david_hay  wheel    369  3 May 14:05 WCTA5-16.gif
-rw-r--r--@  1 david_hay  wheel  32768  3 May 14:06 IDB13217.DTF
-rw-r--r--@  1 david_hay  wheel  24576  3 May 14:07 IDB58516.DTF
-rw-r--r--@  1 david_hay  wheel  94208  3 May 14:17 Portal NFTE Design and Build.doc
-rw-r--r--   1 david_hay  wheel    129  3 May 14:17 .~lock.Portal NFTE Design and Build.doc#
-rw-------   1 david_hay  wheel   6340  3 May 14:19 ~web3010.htm
-rw-r--r--@  1 david_hay  wheel    105  3 May 14:19 ~b744491.TMP
-rw-r--r--@  1 david_hay  wheel   3979  3 May 14:19 lh761256.gif
-rw-r--r--@  1 david_hay  wheel   1542  3 May 14:19 ~notetmp.reg
drwxr-xr-x   7 david_hay  wheel    238  3 May 14:19 ac872696.TMP
drwxr-x---  13 david_hay  wheel    442  3 May 14:19 .


Note that: -

(a) Lotus Notes creates an additional notes subdirectory - /tmp/Notes/notes
(b) that I've got an attached document - Portal NFTE Design and Build.doc - open at present.

Hope this helps.

No comments:

Post a Comment