Welcome to iraf.net Monday, May 13 2024 @ 11:40 AM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 IRAF cron job question
   
Anonymous: Guest
 12/19/2005 09:00AM (Read 3110 times)  



Hi Dave,
Sorry for the slow reply. Is your command just not executing or
are you asking whether there is an easier way? If the first, I'd refer
you to https://iraf.net/phpBB2/viewtopic.php?t=80336&highlight=crontabfor an explanation of IRAF and crontabs. You might also check that the
command output is redirected somewhere so you can see whether there are
any error messages.
If you're asking whether there's an easier way, it depend on
what you mean by easy. Your dplots script is already close to being a
"#!cl" script and so it could be a commandline task, but see above for
why calling it directly may not work as you expect. See http://iraf.noao.edu/iraf/web/new_stuff/cl_host.htmlfor more about #!cl scripts.
Hope this helps.Cheers,
-Mike
On Tue, 13 Dec 2005 armet@noao.edu wrote:> M-
>
> Quick question (I hope).
>
> I currently call IRAF from a cron job and it seems
> kludgy as the cron job calls a 1-liner that redirects
> a csh script to the cl, as in:
>
> 00 09 * * * /bin/csh /export/prometheus/armet/iraf/dplot3
>
> where dplots is:
>
> cl < /export/prometheus/armet/iraf/dplots
>
> and then that (dplots) script loads the various IRAF tasks, etc,
> as in:
>
> .
> .
> .
> set tmp = /tmp/
>
> reset plotcode = "/export/prometheus/armet/iraf/dailyplot.code/"
> task plotcode = plotcode$plotcode.cl
>
> task $adb $bc $cal $cat $comm $cp $csh $date $dbx $df $diff = "$foreign"
> task $du $find $finger $ftp $grep $lpq $lprm $ls $mail $make = "$foreign"
> task $man $mon $mv $nm $od $ps $rcp $rlogin $rsh $ruptime = "$foreign"
>
> grasp
> plotcode
> daily_plots_solarch
> logout
>
>
>
> and, finally, daily_plots_solarch, is the IRAF task that I want to run.
>
> Is there a simpler way? Can IRAF support some sort of cron job, where
> the IRAF task gets called from the cl once a day/hour, whatever?
>
> Thanks,
>
> D-
>
>

 
 Quote
   
Content generated in: 0.02 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login