This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
планирование_выполнения_заданий_в_linux [2019/06/20 09:58] val [Сервис cron] |
планирование_выполнения_заданий_в_linux [2020/03/11 11:14] val [Сервис cron] |
||
---|---|---|---|
Line 17: | Line 17: | ||
# crontab -l | # crontab -l | ||
# m h dom mon dow command | # m h dom mon dow command | ||
- | */10 * * * * /etc/backup.sh | + | */5 * * * * test `top -b -n 1 | grep Cpu | cut -d':' -f2 | cut -d. -f1` -gt 60 && ( date; ps awux ) >> /tmp/ps_cpu_hi.log |
- | 5-59/10 * * * * /etc/backup2.sh | + | 5-59/10 * * * * /etc/backup.sh |
# crontab -r | # crontab -r |