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

Home » Public Forums » archive » Re: .Reset_Session in a script
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: .Reset_Session in a script [message #48973 is a reply to message #48972] Tue, 06 June 2006 13:19 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Michael Galloy wrote:
> toddbranch wrote:
>
>> Hey all,
>>
>> Sorry to be back for help so soon.
>>
>> I have written a script to automatically run all of my data sets
>> through my program. In my program, I define a few structures. I
>> usually run the command .reset_session in between runs of my data
>> because IDL gets mad because my code redefines the same structure. IDL
>> won't let me run the .reset_session command in my script. Any ideas?
>>
>> Thanks a lot for the help,
>> Branch
>>
>
> .reset_session is an executive command; executive commands (all of the
> commands that begin with a ".") can only be entered "in response to the
> IDL prompt" according to the docs. You can put an executive command in a
> batch file and call the file from the command line. For example, in the
> file "batch_run.pro" put:
>
> .reset_session
> start_real_run ; call to your existing program
>
> Then,
>
> IDL> @batch_run
>
> And it should work.

True, but I would suggest the OP address the problem (assuming it actually is one) of the
structure redefinition. So, pardon my denseness, but could the OP define what he means by
"redefines the same structure".

paulv

--
Paul van Delst Ride lots.
CIMSS @ NOAA/NCEP/EMC Eddy Merckx
Ph: (301)763-8000 x7748
Fax:(301)763-8545
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL and the RAM memory
Next Topic: IDLgrLegend and ENABLE_FORMATTING

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

Current Time: Fri Oct 10 18:58:05 PDT 2025

Total time taken to generate the page: 1.10129 seconds