comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDLWAVE environment variables
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDLWAVE environment variables [message #40468] Tue, 10 August 2004 13:44
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Justin writes:

> I'm embarrased to admit that I blamed emacs/IDLWAVE instead of myself.

Oh, well, hummph. Pretty much standard operating
procedure around here. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: IDLWAVE environment variables [message #40469 is a reply to message #40468] Tue, 10 August 2004 13:40 Go to previous message
Justin[3] is currently offline  Justin[3]
Messages: 8
Registered: November 2003
Junior Member
JD Smith <jdsmith@as.arizona.edu> wrote in
news:pan.2004.08.10.18.53.46.948826@as.arizona.edu:

> or just make sure your the emacs session in which IDL is running is
> launched from within a shell which correctly sets the environment
> (emacs then inherits the environment of the shell).

Sorry for asking such a foolish question! As it turns out I was using a
script to set things up which unset the env var in question. I'm embarrased
to admit that I blamed emacs/IDLWAVE instead of myself. Thanks for the
speedy reply JD.

Justin
Re: IDLWAVE environment variables [message #40474 is a reply to message #40469] Tue, 10 August 2004 11:53 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Tue, 10 Aug 2004 18:28:39 +0000, Justin wrote:

> Hi,
>
> Some of my routines depend on reading environment variables, which are set
> in startup scripts (i.e. .cshrc etc under Unix). This works fine when IDL
> is started from the command line but under an IDLWAVE shell the start up
> scripts don't get called.
>
> So, is there anyway to get the IDLWAVE to run a given script before
> starting IDL?

Couple of options: define your environment variables in an emacs
startup like this:

(setenv "IDL_STARTUP" (concat CUBISM_REPOS "/idl_start"))


or just make sure your the emacs session in which IDL is running is
launched from within a shell which correctly sets the environment
(emacs then inherits the environment of the shell).

JD
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Passing Structures with Pointers with Call_External
Next Topic: Re: Running an IDL Project

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 12:53:59 PDT 2025

Total time taken to generate the page: 0.16432 seconds