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

Home » Public Forums » archive » what am I doing wrong?
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: what am I doing wrong? [message #13035 is a reply to message #3602] Mon, 05 October 1998 00:00 Go to previous messageGo to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
Bruce Bowler <bbowler@bigelow.org> writes:

> a couple of things... It is a top level script but there are no
> continuation lines that I can see... (true, my parser is *quite*
> different than IDL's :-)

> second, what happens depends on how I run it, which I find quite strange
> but then again, I'm a relative newbie at IDL...

> I've made some changes, while trying to figure things out. Here is the
> new script in it's entirety... (note I realize some of this [especially
> the case statement] aren't the best way to do things but like I said,
> I'm a newbie and I'm trying some things out and this is stripped down
> procedure anyway...)

(stuff deleted)

> if I run it as follows...

> # idl
> idl> .run 6953

> it works fine...

> if I run it like

> # idl 6953

> the results are

(stuff deleted)

> unfortunately, because of the way I need to interact with some other
> stuff, I really need to run it the second way. What can I do to make it
> work like the first way? I don't think precompiling will work either as
> I generate the file "on the fly".

If you're using Unix, then what you need to do is to create a file like the
following:

#!/bin/csh
setenv MY_IDL_SCRIPT $argv
idl << done
.run $MY_IDL_SCRIPT
done

Use "chmod +x" to make the file executable, and then you can use this to
execute whatever IDL script you want.

William Thompson
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Restored Object Method Compilation
Next Topic: CENTERING TEXT

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

Current Time: Wed Oct 22 15:02:28 PDT 2025

Total time taken to generate the page: 1.44279 seconds