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

Home » Public Forums » archive » Re: Using IDL shell in crontab
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: Using IDL shell in crontab [message #56963 is a reply to message #56962] Sun, 25 November 2007 19:36 Go to previous messageGo to previous message
rkombiyil is currently offline  rkombiyil
Messages: 59
Registered: March 2006
Member
On Nov 26, 6:26 am, Anthony <anthonysmit...@gmail.com> wrote:
> On Nov 24, 1:07 pm, Bearstone <bearst...@gmail.com> wrote:
>
>
>
>> I tried hard to get the answer on the web, but I got no clue.
>
>> My problem is really simple.
>
>> I draw simple figures with IDL code and it work without any problem.
>
>> I use simple shell file like
>
>> idl << EOF
>> .run 1122.pro
>> .run 1122-arsl.pro
>> .run 1122size.pro
>> EOF
>
>> when I run it manually, it has no problem
>
>> But when I put the shell file in crontab - because I have to draw
>> figure every 10 minures- it doesn't work at all
>
>> Crontab setting is like below
>> */10 7-20 * * * /bin/csh /data1/kimws/skyrad/Seoul/POM01MKII/1122one-
>> mk2.csh > /data1/kimws/skyrad/mk2.out
>
>> If I just run manually on prompt like
>> [arsl]/data1/kimws/skyrad/Seoul/POM01MKII{442}/data1/kimws/s kyrad/
>> Seoul/POM01MKII/1122one-mk2.csh
>
>> It works good.
>> It's doesn't work only when it is in crontab.
>
>> Other shell files that doesn't contain any IDL code work without any
>> problem.
>
>> How can I solve this problem? T.T
>
> Try giving the full path for idl, e.g.,
>
> /local/bin/idl <<EOF
>
> That's worked for me in the past.
>
> Anthony

Hmm, I agree with Anthony. I didnt test IDL when I posted earlier, but
in my experiance usually, if the script doesn't work when executed as
cronjob (but otherwise does), then the cron environment needs to be
checked. After I saw this reply, I wrote a 2 line idl program to plot
some random data every 2 minutes and gave the full path to IDL (/usr/
local/bin/idl) and it worked, but strange, in this case, it didn't
require the explicit definition of shell variable in crontab? It will
come to me, but not now, heh! Anyway, thanks.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How can i put in a IDLgrAxis non constant values ?
Next Topic: int_2D and int_3D

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

Current Time: Mon Oct 27 03:04:27 PDT 2025

Total time taken to generate the page: 0.02806 seconds