[R] how to set crontab for updating the repositories?
Paul Hiemstra
p.hiemstra at geo.uu.nl
Wed Aug 26 13:57:28 CEST 2009
Sukhbir Rattan wrote:
> Hi,
>
> I have downloaded around 60GB package repositories of bioconductor to use it
> locally and to set up mirror at my university site.
>
> I have installed the mirror with rsync command and able to access also.
>
> Now I have to set a cron job for its daily updating from bioconductor
> website. How should I do it?
>
> I know rsync have to be used but I don't know the proper syntax.
>
> I request to send proper syntax.
>
> Thanks,
>
> Sukhbir Singh Rattan.
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
Hi,
Typing:
crontab -e
Will open the crontab file for the current user, here you can add
commands that are to executed at certain times. The crontab will look
something like:
# m h dom mon dow command
0 0 * * * /foo/bar
where the command /foo/bar will be executed every day (dom, mon and dow
are a *, meaning 'for all') at 12 pm.
cheers,
Paul
--
Drs. Paul Hiemstra
Department of Physical Geography
Faculty of Geosciences
University of Utrecht
Heidelberglaan 2
P.O. Box 80.115
3508 TC Utrecht
Phone: +3130 274 3113 Mon-Tue
Phone: +3130 253 5773 Wed-Fri
http://intamap.geo.uu.nl/~paul
More information about the R-help
mailing list