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

Home » Public Forums » archive » Re: IDL v8 not recognizing bash environment variable
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL v8 not recognizing bash environment variable [message #75837 is a reply to message #75823] Wed, 27 April 2011 14:37 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 4/27/11 3:14 PM, Barry Lesht wrote:
>
>> Check the value of the SEADAS environment variable with the GETENV
>> routine. Everything seems fine for me:
>>
>> $ export MIKE=Hello
>> $ idl
>> IDL Version 8.0.1, Mac OS X (darwin x86_64 m64). (c) 2010, ITT Visual
>> Information Solutions
>> Installation number: 209577.
>> Licensed for use by: Tech-X Corporation
>>
>> IDL> print, getenv('MIKE')
>> Hello
>>
>> Mike
>> --www.michaelgalloy.com
>> Research Mathematician
>> Tech-X Corporation
>
> Thanks, Mike. I think your suggestion narrows down the problem. When
> I invoke IDL from a shell session, like you did, I get the following:
>
> bash-3.2$ idl
> IDL Version 8.0.1, Mac OS X (darwin x86_64 m64). (c) 2010, ITT Visual
> Information Solutions
> Installation number: 230343.
> Licensed for use by: Computer Sciences Corporation
>
> IDL> PRINT, getenv('SEADAS')
> /Volumes/1TBSATDATA/sw/seadas6.2
> IDL>
>
> which is correct. However, I was working from within the IDL
> development environment (MacOS10.6.7) and this is the result there:
>
> IDL Version 8.0.1, Mac OS X (darwin x86_64 m64). (c) 2010, ITT Visual
> Information Solutions
> Installation number: 230343.
> Licensed for use by: Computer Sciences Corporation
>
> IDL> PRINT, getenv('SEADAS')
>
> IDL>
>
> which isn't correct. I may need to add something (not sure what) to a
> start-up script somewhere.

You could add a line in your startup file to add this. For example, if
you don't already have a startup file, create a file, say
my_startup.pro, with something like:

setenv, 'SEADAS=/Volumes/1TBSATDATA/sw/seadas6.2'

If you don't already have a startup file, then you will need to do:

IDL> pref_set, 'IDL_STARTUP', '/path/to/my_startup.pro', /commit

This will tell IDL to execute the commands in the startup file every
time IDL launches (from either the command line or the Workbench).

Mike
--
www.michaelgalloy.com
Modern IDL, A Guide to Learning IDL: modernidl.idldev.com
Research Mathematician
Tech-X Corporation
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Support Vector Machine Classification by IDL
Next Topic: IDL 8 uses 3x the memory of IDL 7.1

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

Current Time: Wed Oct 08 17:54:29 PDT 2025

Total time taken to generate the page: 0.00394 seconds