This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
планирование_выполнения_заданий_в_linux [2023/01/22 12:32] val [Сервис cron] |
планирование_выполнения_заданий_в_linux [2023/03/03 07:24] val [Сервис cron] |
||
---|---|---|---|
Line 10: | Line 10: | ||
* [[https://ru.wikipedia.org/wiki/Cron|cron - Материал из Википедии]] | * [[https://ru.wikipedia.org/wiki/Cron|cron - Материал из Википедии]] | ||
+ | * [[https://stackoverflow.com/questions/9049460/cron-jobs-and-random-times-within-given-hours|Cron jobs and random times, within given hours]] | ||
* [[Коды завершения#Простая система мониторинга]] | * [[Коды завершения#Простая система мониторинга]] | ||
* Сервис Git [[Сервис Git#Пример с использованием cron]] | * Сервис Git [[Сервис Git#Пример с использованием cron]] | ||
Line 23: | Line 24: | ||
*/5 * * * * test $(LANG= top -b -n 1 | grep Cpu | cut -d':' -f2 | cut -d. -f1) -gt 60 && ( date; ps awux ) >> /tmp/ps_cpu_hi.log | */5 * * * * test $(LANG= top -b -n 1 | grep Cpu | cut -d':' -f2 | cut -d. -f1) -gt 60 && ( date; ps awux ) >> /tmp/ps_cpu_hi.log | ||
- | + | </code><code> | |
- | 0 */2 * * * /usr/bin/ansible-pull -s 90 -U http://server.corpX.un/student/ansible-pull-gpo.git -C main | + | echo -e "0 */2 * * * \ |
- | @reboot sleep 1m; /usr/bin/ansible-pull -U http://server.corpX.un/student/ansible-pull-gpo.git -C main | + | /usr/bin/ansible-pull -s 90 -U http://gate:3000/student/ansible-pull-gpo.git\n\ |
- | </code> | + | @reboot sleep 1m; /usr/bin/ansible-pull -U http://gate:3000/student/ansible-pull-gpo.git" | crontab - |
+ | </code><code> | ||
# ls /var/spool/cron/ | # ls /var/spool/cron/ | ||