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

Home » Public Forums » archive » Re: IDL env. 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: IDL env. variables [message #49819] Thu, 17 August 2006 13:29
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
for !path, you could read the user's idl.pref file...

Jean

Dominic Metzger wrote:
> Hi,
>
> Is there a way to get the content of IDL's env. variables:
> !DLM_PATH
> !PATH
> !DIR
>
> without starting IDL. So, in other words is there a way to figure out
> what they will be set to from bash?
>
> thanks,
>
> dometz
>
Re: IDL env. variables [message #49824 is a reply to message #49819] Thu, 17 August 2006 12:46 Go to previous message
mchinand is currently offline  mchinand
Messages: 66
Registered: September 1996
Member
The idl executable is a shell script that sets these variables up and then calls the actual binary, so I might be easiest to
take the beginning of this script before it actually calls the IDL binary.

--Mike

In article <1155841951.157796.297490@p79g2000cwp.googlegroups.com>,
Dominic Metzger <dometz@gmail.com> wrote:
> Yeah, but this is not what I am looking for since, in this way, idl
> still has to start up.
>
> Any other suggestions?
>
> dometz
>
> Jo Klein wrote:
>> Well, I don't know if there's any proper non-IDL way, but what you can do:
>>
>> echo 'PRINT,!DLM_PATH & EXIT' > blah.txt
>> p=`idl < blah.txt`
>> echo Here\'s the path: $p
>>
>> Cheers,
>> Jo
>


--
Michael Chinander
m-chinander@uchicago.edu
Department of Radiology
University of Chicago
Re: IDL env. variables [message #49825 is a reply to message #49824] Thu, 17 August 2006 12:12 Go to previous message
Dominic Metzger is currently offline  Dominic Metzger
Messages: 30
Registered: August 2006
Member
Yeah, but this is not what I am looking for since, in this way, idl
still has to start up.

Any other suggestions?

dometz

Jo Klein wrote:
> Well, I don't know if there's any proper non-IDL way, but what you can do:
>
> echo 'PRINT,!DLM_PATH & EXIT' > blah.txt
> p=`idl < blah.txt`
> echo Here\'s the path: $p
>
> Cheers,
> Jo
Re: IDL env. variables [message #49827 is a reply to message #49825] Thu, 17 August 2006 11:38 Go to previous message
Jo Klein is currently offline  Jo Klein
Messages: 54
Registered: January 2006
Member
Well, I don't know if there's any proper non-IDL way, but what you can do:

echo 'PRINT,!DLM_PATH & EXIT' > blah.txt
p=`idl < blah.txt`
echo Here\'s the path: $p

Cheers,
Jo
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Output log contents to be displayed
Next Topic: iPlot export PostScript error with logarithmic X axis

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

Current Time: Thu Oct 09 08:47:09 PDT 2025

Total time taken to generate the page: 0.88169 seconds