Hi Merlijn,
And, after I create the crontab, do I have to jsub anything or will it do
it auto?
Best regards, M.
El martes, 16 de agosto de 2016, Merlijn van Deen (valhallasw) <
valhallasw(a)arctus.nl> escribió:
Hi MarcoAurelio,
For cron tabs, the following two pages contain relevant material:
-
https://help.ubuntu.com/community/CronHowto
-
https://wikitech.wikimedia.org/wiki/Help:Tool_Labs/Grid#
Scheduling_jobs_at_regular_intervals_with_cron
In summary, `cron` allows you to schedule tasks. `cron` is configured
using a `crontab`, which you can edit using
`crontab -e`. This will open an editor, which shows some more
instructions. At the bottom of that file, you can insert
scheduled tasks, one per line. The format is:
<minute> <hour> <day of month> <month> <day of week>
<command>,
so to run something every day, you could add
12 04 * * * redirects.sh
which would run redirects.sh every day at 04:12 UTC. Try not to schedule
commands around midnight, as
the servers are relatively busy then with tasks that /need/ to run at
midnight. The same is true for the whole hours.
Hope this helps!
Merlijn
On 16 August 2016 at 02:43, MarcoAurelio <strigiwm(a)gmail.com
<javascript:_e(%7B%7D,'cvml','strigiwm@gmail.com');>> wrote:
Hello,
I've recently managed to get my bot run in the Tool Labs, which allows
me to finally execute some tasks regularly without my intervention.
I however find the instructions confusing, and I don't really know how
to create a cron.
My idea is to have the "redirects.sh" task to run each 24 hours. How
can I do it?
Best regards,
M
_______________________________________________
pywikibot mailing list
pywikibot(a)lists.wikimedia.org
<javascript:_e(%7B%7D,'cvml','pywikibot@lists.wikimedia.org');>
https://lists.wikimedia.org/mailman/listinfo/pywikibot
--
M. A.