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 #48974 is a reply to message #48972] Tue, 06 June 2006 13:16 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
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.

Mike
--
www.michaelgalloy.com
[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 06:09:29 PDT 2025

Total time taken to generate the page: 1.19805 seconds