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

Home » Public Forums » archive » running main file from batch script ... in a loop
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: running main file from batch script ... in a loop [message #87681 is a reply to message #87679] Sat, 22 February 2014 09:22 Go to previous messageGo to previous message
antonella.garzilli is currently offline  antonella.garzilli
Messages: 2
Registered: February 2014
Junior Member
Ahahahah

because batch files are a list of commands you would insert in the command prompt, I assumed that you could just put executive commands in a batch.
I solved my problem calling a pro from a main.

Anyway I should stop using IDL, it feels too much like programming in the 90s.


On Saturday, February 22, 2014 5:29:53 PM UTC+1, David Fanning wrote:
> writes:
>
>
>
>> I was trying to run a main file from within a batch script. I have run it simply from the file, and it works, but if I try to call it from within a loop cycle I get a syntax error.
>
>>
>
>> I do something like this:
>
>>
>
>> n=10
>
>> for i=0, n do begin $
>
>> & .run main.pro $
>
>> & endfor
>
>>
>
>>
>
>> and main.pro can be something as easy as this:
>
>>
>
>> print, 'hello'
>
>> end
>
>
>
> Humm. Don't really know what to say, except this is "All Wrong!" What is
>
> it, exactly, you are trying to do?
>
>
>
> Cheers,
>
>
>
> David
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL reading tiff files
Next Topic: IDL license file

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

Current Time: Thu Oct 09 23:04:54 PDT 2025

Total time taken to generate the page: 0.23961 seconds