IRAF cron job question
Guest wrote on Dec 19, 2005
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
http://iraf.net/phpBB2/viewtopic.php?t=80336&highlight=crontab
for 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.html
for 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-
>
>
Post generated using Mail2Forum (http://www.mail2forum.com)
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
http://iraf.net/phpBB2/viewtopic.php?t=80336&highlight=crontab
for 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.html
for 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-
>
>
Post generated using Mail2Forum (http://www.mail2forum.com)
Last post on Dec 19, 2005