specifying alternate cdsplotinit?

D

danmc

Guest
Is there a skill command or an environment variable that would let me
specify a completely alternate location for a cdsplotinit file?
Additionally, is there a way to add one more directory to
the .cdsplotinit search path?

I'm wanting a way to make sure a certain plotter is defined for the
purposes of a particular script but can't touch the system cdsplotinit
and don't want to mess with users $HOME/.cdsplotinit.

Thanks
-Dan
 
In article <1180110624.137799.60950@p77g2000hsh.googlegroups.com> danmc <spam@mcmahill.net> writes:
Is there a skill command or an environment variable that would let me
specify a completely alternate location for a cdsplotinit file?
Additionally, is there a way to add one more directory to
the .cdsplotinit search path?
Yes, the CDSPLOTINIT environment variable. Unfortuantely it does not seem
to be in cdsdoc, but the description is available on sourcelink. Just search
for cdsplotinit, and the first hit is "DF2: How to point to the .cdsplotinit
file, other than the default paths?".

Here's a short answer I found in a question PCR:

--------------
Loads plotter initialization file(s) specified by the user's environment
variable CDSPLOTINIT. CDSPLOTINIT is a list of paths to .cdsplotinit
files separated by colons. Here is an example:
CDSPLOTINIT=/mnt/share/global:/usr/share/group:/home/foo/myplotters

In the example the last path is a file called myplotters in /home/foo
and it is loaded instead of /home/foo/myplotters/.cdsplotinit
because it is a file not a directory.
This will add a little bit of flexability to the whole configuration
process.
After processing the list in the environment variable the one at
$HOME/.cdsplotinit is loaded as a catch-all.

If the enviroment variable CDSPLOTINIT is not set then the default is
to load the configuration files in the original order i.e. to load
<cdsroot>/plot/.cdsplotinit then ./.cdsplotinit and finally
$HOME/.cdsplotinit
------------------------

-Pete Zakel
(phz@seeheader.nospam)

"Tut! Tut!" cried Sherlock Holmes. "You must act, man, or you are lost.
Nothing but energy can save you. This is no time for despair."

-A. Conan Doyle
 

Welcome to EDABoard.com

Sponsor

Back
Top