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 #87679 is a reply to message #87678] Sat, 22 February 2014 08:29 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
antonella.garzilli@gmail.com 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: Fri Oct 10 04:13:26 PDT 2025

Total time taken to generate the page: 1.67805 seconds