|
|
|
|
Re: running idl from a cron job [message #59075 is a reply to message #58426] |
Thu, 06 March 2008 01:37  |
rlayberry
Messages: 33 Registered: November 2004
|
Member |
|
|
On 5 Mar, 15:43, "mgal...@gmail.com" <mgal...@gmail.com> wrote:
> On Mar 5, 7:44 am, rlaybe...@hotmail.com wrote:
>
>> Thanks for this. I had a play with it and what i do now is just put
>
>> idl -IDL_STARTUP myfile
>
>> in the shell script called from the cron job
>
>> and myfile is the batchfile which is run
>
> You can do that without the using the startup option:
>
> $ idl myfile
>
> will run the myfile.pro batch file (put an exit at the end if you want
> IDL to quit at the end). You can also execute an arbitrary command:
>
> $ idl -e "surface, hanning(20, 20)"
>
> Full options are described in the online help here:
>
> http://idlastro.gsfc.nasa.gov/idl_html_help/Command_Line_Opt ions_for_...
Thanks Mike, that's better.
|
|
|
Re: running idl from a cron job [message #59091 is a reply to message #58426] |
Wed, 05 March 2008 07:43  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On Mar 5, 7:44 am, rlaybe...@hotmail.com wrote:
> Thanks for this. I had a play with it and what i do now is just put
>
> idl -IDL_STARTUP myfile
>
> in the shell script called from the cron job
>
> and myfile is the batchfile which is run
You can do that without the using the startup option:
$ idl myfile
will run the myfile.pro batch file (put an exit at the end if you want
IDL to quit at the end). You can also execute an arbitrary command:
$ idl -e "surface, hanning(20, 20)"
Full options are described in the online help here:
http://idlastro.gsfc.nasa.gov/idl_html_help/Command_Line_Opt ions_for_IDL_Startup.html
Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
|
|
|
Re: running idl from a cron job [message #59097 is a reply to message #58562] |
Wed, 05 March 2008 06:44  |
rlayberry
Messages: 33 Registered: November 2004
|
Member |
|
|
On 1 Feb, 19:36, pgri...@gmail.com wrote:
> Well, here's how I do it (there may be other ways tough).
>
> Define a shell script doing two things:
>
> - set up an IDL_STARTUP environmental variable with the full path to a
> valid
> IDL program (let's say is called idl_startup.pro)
> - start idl
>
> Then, in idl_startup.pro put in
>
> [your initialization for IDL]
>
> your_program
>
> exit
> end
>
> This way, you can put the shell script in your cron table,
> and this will execute your IDL initializations, then
> the program called your_program and exit IDL when
> your_program is finished.
>
> Ciao,
> Paolo
>
>
>
> rlaybe...@hotmail.com wrote:
>> hi
>
>> can someone give me a link to show how to run an idl peice of code
>> from a unix shell script
>
>> thanks
>
>> russ- Hide quoted text -
Hi
Thanks for this. I had a play with it and what i do now is just put
idl -IDL_STARTUP myfile
in the shell script called from the cron job
and myfile is the batchfile which is run
russ
|
|
|