how to re-define the HOME directory?




On Tue, 2 Jun 2009, Robert Dodier wrote:

< On 6/2/09, Leo Butler <l.butler at ed.ac.uk> wrote:
< 
< > What is needed, I think, is a command-line option that allows the user
< > to set the init file at run-time. This is presently lacking.
< 
< Agreed. Can someone look into that?

Can you point me in the general direction (source files...).

< 
< > To run multiple parallel instances of maxima which call gnuplot, one can
< > create a tmp directory in the present directory and set
< > maxima_tempdir in the first line of maxima.
< 
< It seems like Maxima should be calling mkstemp or whatever
< to create a temporary file name; otherwise different instances
< of Maxima can clobber each other's output files.
< 
< I suppose mkstemp is not a CL function but maybe we can
< come up with an acceptable approximation.
 
Just to be clear about your intentions: 

You are proposing a user-invoked function, in which a user could 
set maxima_tempdir (to say /tmp) and the function would create a uniquely named
temporary directory in maxima_tempdir (like /tmp/tmpAcfae, etc), and
then that function would change maxima_tempdir to its uniquely named
temporary directory?

I think this is the correct way to accomodate users who wish to run
multiple instances, while changing very little in maxima proper. 

Leo

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.