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 #75840 is a reply to message #75839] Wed, 27 April 2011 13:02 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 4/27/11 11:57 AM, Barry Lesht wrote:
> Not sure I'm expressing this correctly in the subject line - this is
> my problem: I have a code that ran fine under IDL7 that included the
> line "sta_list = READ_ASCII("$SEADAS/local/stationfile.txt,"
> TEMPLATE=stationtemplate). I just tried running the same code under
> IDL8 and now get the error message
>
> % READ_ASCII: File "$SEADAS/local/stationfile.txt" not found.
>
> The file is most definitely where it should be. After doing some
> experimenting, it seems IDL8 isn't getting any value for the $SEADAS
> variable.
>
> I hope someone can explain to me why not and how to fix it?
>
> Thanks.

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
[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: Fri Oct 10 00:44:54 PDT 2025

Total time taken to generate the page: 1.03588 seconds