This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
планирование_выполнения_заданий_в_linux [2023/03/03 07:24] val [Сервис cron] |
планирование_выполнения_заданий_в_linux [2023/03/03 07:25] val [Сервис cron] |
||
---|---|---|---|
Line 25: | Line 25: | ||
*/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> | </code><code> | ||
- | echo -e "0 */2 * * * \ | + | # echo -e "0 */2 * * * \ |
/usr/bin/ansible-pull -s 90 -U http://gate:3000/student/ansible-pull-gpo.git\n\ | /usr/bin/ansible-pull -s 90 -U http://gate:3000/student/ansible-pull-gpo.git\n\ | ||
@reboot sleep 1m; /usr/bin/ansible-pull -U http://gate:3000/student/ansible-pull-gpo.git" | crontab - | @reboot sleep 1m; /usr/bin/ansible-pull -U http://gate:3000/student/ansible-pull-gpo.git" | crontab - |