Operating System - HP-UX
1830071 Members
25166 Online
109998 Solutions
New Discussion

How to redirect elm work directory to other than /tmp?

 
SOLVED
Go to solution
Randy Hagedorn
Regular Advisor

How to redirect elm work directory to other than /tmp?

Hi,

Can anyone tell me how to change the working directory that 'elm' uses to something other than /tmp?

A failed script created a message that is over 9 Million lines long. I am trying to delete it, but when I delete and exit elm, it must use /tmp as a scratch area, and it runs out of space.

I would like to redirect elm to a different directory that has more room in it.

Thanks,
Randy
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: How to redirect elm work directory to other than /tmp?

You have several options. In the .elmrc file you can specify a tmpdir. The easist method is to set and export TMPDIR. Only if no tmpdir entry is found in the .elmrc file and the TMPDIR environment variable is not defined does elm then use the default temp directory /tmp. A simple man elm would have told you this.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: How to redirect elm work directory to other than /tmp?

Hi Randy:

'elm has a configuration file -- '$HOME/.elm/elmrc'. You can specify a 'tmpdir' parameter there. If not specified, the default is the value of the 'TMPDIR' environment variable, if set and nonnull, or '/tmp/' otherwise.

Hence, you have several choices and places to control the placement of temporary 'elm' files.

See the 'elm' manpages for more information.

Regards!

...JRF...
Randy Hagedorn
Regular Advisor

Re: How to redirect elm work directory to other than /tmp?

Since this is a temporaray situation, I did a TMPDIR=/u07; export TMPDIR to redirect the work area to a directory with more free space.

Thanks for the help.

Randy