[Skip Global Navigation]

SPSS Tech Tips

SPSS Direct Home

Changing Clementine's temporary directory

This is a complimentary tip available to SPSS Direct subscribers.

Question

When using Clementine®, how do I specify where temporary files will be written?

Answer

When you install Clementine Client on a PC, the software will write temporary files there. If you connect the Clementine Client to Clementine Server and run the client in distributed mode, then the temporary files will be written on the server. In either case, you can easily change the location where these files are written.

For Clementine Client running in stand-alone mode, Clementine Desktop™, or Clementine Graduate Pack:

By default, these all write temporary files to the Microsoft® Windows® temporary directory on your local PC. To specify an alternate location, you need to edit the “options.cfg file,” which appears in the <Clementine Install>\config directory. To edit this file, log in with an account that has full control of the Clementine installation directory (you may need an Administrator profile to do this) and follow these steps:

1. Right-click on the options.cfg file and uncheck the "read-only" checkbox.

2. Open the file in a text editor such as Notepad or WordPad.

3. Specify the location where you want temporary files to be written to using the "temp_directory" parameter (the default value for this is an empty string).

You must use forward-slash directory delimiters in this path, and you need to retain the double quotes that are in this setting by default. Also, be sure that you log in with a user profile that has RWX permissions for the directory you are specifying.

For example, to redirect the Clementine temporary files to E:\data\temp, you would configure the following in the options.cfg file:

temp_directory, "E:/data/temp"

4. Finally, save the file and restart Clementine Client.

For Clementine Server:

Clementine Server writes its temporary files to the "tmp" subdirectory within its own installation directory by default. Sometimes it is necessary to change this to a location with more space available (perhaps a separate file system from the Clementine Server installation). Follow the steps below to modify the options.cfg file that you will find in the <Clementine Server Install>\config directory and to specify an alternative location:

1. Open the options.cfg file in a text editor.

2. Specify the location that you want temporary files to be written to, using the "temp_directory" parameter (the default value for this is an empty string).

Again, you must use forward-slash directory delimiters in this path (even if you are using Clementine Server on a Windows platform) and you need to retain the double quotes. In addition, any user logging into Clementine Server must have RWX permissions for this new directory.

For example, if you would like to redirect the Clementine Server on Windows temporary files to E:\data\temp, you would configure the following in the options.cfg file:

temp_directory, "E:/data/temp"

On a UNIX system, you might see something like this:

temp_directory, "/data/clem/temp"

3. Save the file and restart Clementine Server.

For more information on the temp_directory parameter and other settings controlled by the options.cfg file, please refer to
The Clementine Server and Performance Guide, which may be found in the documentation folder on your installation CD.