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

Home » Public Forums » archive » Re: @make vs command line for creating .sav files.
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: @make vs command line for creating .sav files. [message #50261 is a reply to message #50260] Thu, 21 September 2006 10:13 Go to previous messageGo to previous message
Allan Whiteford is currently offline  Allan Whiteford
Messages: 117
Registered: June 2006
Senior Member
Fails for me on IDL 6.2 on Linux, the problem seems to be that the
.reset_session is throwing away the path additions when called via @

If I issue the 3 commands:

if (strmatch(!PATH, '*allan*') eq 0L) then print,'1'
.reset_session
if (strmatch(!PATH, '*allan*') eq 0L) then print,'2'

then nothing gets printed but if I put them in an file and call it via @
then I get '2' printed to the screen (I had something with 'allan' added
to my !path variable).

The root of the problem is that the startup file gets processed straight
after the .reset_session when called from the command line but if a
.reset_session call is inside an @file then it's reprocessed after the
whole @file is finished.

I'm not sure if this is the correct behaviour or not (one would suspect
not since David found a different behaviour on windows).

The pragmatic solution is, I guess, to rebuild your path or manually
call your startup file after the .reset_session.

Hope this helps.

Thanks,

Allan

David Fanning wrote:
> savoie@nsidc.org writes:
>
>
>> O.k. I've searched google but I'm not finding the answer.
>>
>> First I'm wondering why and @file on the command line acts differently
>> from typing the commands in one at a time.
>
>
> Humm. Well, it works both ways with IDL 6.2 on Windows.
> If I had to guess, I would say your path is not getting
> set properly after the .reset when running from the @ sign.
> You might try printing !PATH before the call to RESOLVE_ALL
> to see if that is the case.
>
> Cheers,
>
> David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: @make vs command line for creating .sav files.
Next Topic: Re: @make vs command line for creating .sav files.

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

Current Time: Mon Oct 27 03:04:26 PDT 2025

Total time taken to generate the page: 0.02737 seconds