This is an old revision of the document!
Сервис 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 …