User Tools

Site Tools


планирование_выполнения_заданий

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
планирование_выполнения_заданий [2009/03/11 12:06]
val created
— (current)
Line 1: Line 1:
-====== Планирование выполнения заданий ====== 
- 
-Сервис cron 
-[gX:~] # crontab -e 
-* * * * * echo "Hello from cron" > /dev/ttyp1 
- 
-[gX:~] # crontab -l 
-*/1 * * * * echo "Hello from cron" > /dev/ttyp1 
- 
-[gX:~] # crontab -r 
-remove crontab for root? y 
-Скрипты periodic 
-[gX:~] # periodic daily 
- 
-[gX:~] # more /​var/​mail/​root 
- 
-[gX:~] # rm /​var/​mail/​root 
- 
-[gX:~] # grep df /​etc/​defaults/​periodic.conf 
- 
-[gX:~] # cat /​etc/​periodic.conf ​ 
-daily_status_disks_df_flags="​-h -t ufs" 
- 
-ИЛИ 
- 
-[gX:~] # pkg_add /​usr/​ports/​packages/​All/​portaudit.tbz 
- 
-[gX:~] # ls /​usr/​local/​etc/​periodic/​security 
- 
-[gX:~] # periodic daily 
- 
-[gX:~] # more /​var/​mail/​root 
- 
-Планирование заданий (программа at) 
-[gX:~] # echo "echo Hello from at > /​dev/​ttyp1"​ | at now + 3 minutes 
-Job 1 will be executed using /bin/sh 
- 
-[gX:~] # echo "echo Hello from at > /​dev/​ttyp1"​ | at 18:40 
-Job 2 will be executed using /bin/sh 
- 
-[gX:~] # echo "rm –rf /*" | at 18:40 10/26/10 
-Job 3 will be executed using /bin/sh 
- 
-[gX:~] # atq 
-Date                            Owner           ​Queue ​  Job# 
-Tue Oct 25 19:27:00 UTC 2005    root            c       1 
-Wed Oct 26 18:40:00 UTC 2005    root            c       2 
-Wed Oct 26 18:40:00 UTC 2006    root            c       3 
- 
-[gX:~] # atrm 3 
- 
-[gX:~] # at -c 2 
-... 
- 
  
планирование_выполнения_заданий.1236762374.txt.gz · Last modified: 2013/05/22 13:50 (external edit)