This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
сервис_atrun [2018/01/12 13:34] val создано |
сервис_atrun [2024/12/30 07:08] (current) val |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Сервис atrun ====== | ====== Сервис atrun ====== | ||
+ | ===== Настройка ===== | ||
<code> | <code> | ||
- | freebsd# cat /etc/crontab | + | debian# apt install at |
- | linux# ls /etc/init/atd.conf | + | |
+ | debian# systemctl status atd | ||
+ | </code> | ||
+ | |||
+ | ===== Варианты использования ===== | ||
+ | |||
+ | * Организация обратных вызовов [[Сервис Asterisk#С использованием Call файлов]] в Asterisk | ||
+ | |||
+ | <code> | ||
+ | # echo "cp /root/*.call /var/spool/asterisk/outgoing/" | at now + 3 minutes | ||
- | # echo "/usr/share/start_conf.sh" | at now + 3 minutes | ||
# echo "init 0" | at 17:40 | # echo "init 0" | at 17:40 | ||
- | # echo "killall sshd" | at now + 2 days | ||
- | # echo "rm –rf /*" | at 23:59 12/31/2019 | ||
+ | # echo "service ssh stop" | at now + 2 days | ||
+ | |||
+ | # echo "rm -rf /*" | at 23:59 12/31/2022 | ||
+ | </code> | ||
+ | |||
+ | ===== Управление заданиями ===== | ||
+ | <code> | ||
# atq | # atq | ||
Line 15: | Line 29: | ||
# at -c 2 | # at -c 2 | ||
- | ... | ||
</code> | </code> |