How to use IDL in a cronjob? [message #87719] |
Tue, 25 February 2014 07:35  |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
Hello,
I have a bunch of cronjobs that run various tests daily. A shell script
is invoked that does all the heavy lifting, invoking various compiled
executables.
What I would like to do is to add an additional step to my script that
invokes IDL to plot the results of those tests.
I have an IDL batch file that I can invoke at the IDL prompt that
generates the plots.
But how do I invoke that batch file at the OS prompt in a
non-interactive shell process?
Thanks for any info.
cheers,
paulv
|
|
|
|
|
Re: How to use IDL in a cronjob? [message #87724 is a reply to message #87719] |
Tue, 25 February 2014 07:58   |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
On Tuesday, February 25, 2014 4:35:31 PM UTC+1, Paul van Delst wrote:
> Hello,
>
>
>
> I have a bunch of cronjobs that run various tests daily. A shell script
>
> is invoked that does all the heavy lifting, invoking various compiled
>
> executables.
>
>
>
> What I would like to do is to add an additional step to my script that
>
> invokes IDL to plot the results of those tests.
>
>
>
> I have an IDL batch file that I can invoke at the IDL prompt that
>
> generates the plots.
>
>
>
> But how do I invoke that batch file at the OS prompt in a
>
> non-interactive shell process?
>
>
>
> Thanks for any info.
>
>
>
> cheers,
>
>
>
> paulv
Not sure if this is what you need, but what I do is use the idl virtual machine (I think !).
You have to locate the file idlrt.exe in you idl distribution and then use it like this (on windows!):
c:\>"c:\Program Files\Exelis\...\idlrt.exe" d:\MySoft\testfile.sav
Of course you need to make a sav file before hand.
Also, I'm not sure how this would look like on linux, but I just guess you need an extra ./ before the executable.
Hope it helps.
Invokingly yours,
Helder
|
|
|
|
|
|
|
Re: How to use IDL in a cronjob? [message #87743 is a reply to message #87737] |
Tue, 25 February 2014 14:22  |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
Cool! I also notice a "-batch" switch. I'll have to try it. (why can't
*I* find all this useful stuff when I search for it?! Grrr argghh)
My cronjob ran and the IDL plots were produced and squirted onto an ftp
server so invoking IDL sans switches does do the job - but it may rely
on something in my environment. Pudding-proof comes when I move the
whole shebang onto the supa-computers.
Thanks,
paulv
On 02/25/14 15:45, Matthew Argall wrote:
>> So simple! I spent about 15 minutes looking through the help and did not
>> see that described (not saying it's not there, just I couldn't easily
>> find it).
>
> Check out the "-e" option at the command line. Can save an intermediate step
>
> http://www.exelisvis.com/docs/Command_Line_Options_for.html
>
|
|
|