Re: IDL env. variables [message #49819] |
Thu, 17 August 2006 13:29 |
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  |
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  |
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  |
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
|
|
|