4 replies [Last post]
gdb@schaubroeck.be
Offline
Joined: 2010-10-05

Is it possible to change the default temp folder?

Default the tempfolder is /tmp/docmosis ?
Can i configure it to /tmp/docmosis_example ?

Thanks

admin
Offline
Joined: 2010-09-06
Temp Usage

Hello gdb.

Docmosis uses temp files and folders for lots of operations. Can you please say what you hope to gain by the suggested example and we'll make a suggestion?

gdb@schaubroeck.be
Offline
Joined: 2010-10-05
Hi, I can't specify anything

Hi,

I can't specify anything furter, docmosis uses a temp folder on path /tmp/docmosis.
Because i would have 2 instances of docmosis on 1 machine, I would split them because one instance haven't acces to the temp folder of the other.

So my question is quite easy, how can I set that path?

admin
Offline
Joined: 2010-09-06
Temp Can Be Shared, But You Have Options
Hello GDB. Yes, you need to change the temp dir when the java process is launched:
 java -Djava.io.tmpdir=/mytmp1 ...
 java -Djava.io.tmpdir=/mytmp2 ...
Docmosis will still create a docmosis directory under /mytmp1 and /mytmp2, but they will be separated. You may need to supply the Full Path to the tmp area (relative paths (eg ./tmp1)) don't work on some platforms. If you are using the runConverter.sh or runConverter.bat script, this is where you would add the -D option.
gdb@schaubroeck.be
Offline
Joined: 2010-10-05
It works

Hi Paul,

This works now.