at command is not executed

后端 未结 5 969
攒了一身酷
攒了一身酷 2021-01-18 04:45

I am trying to make the at bash command to run, but it is not working for me. I can add a job to the queue, but it is not run when the time is up. What am I doi

5条回答
  •  独厮守ぢ
    2021-01-18 05:23

    To analyze at(d) execution problems it may help to

    1. Check /etc/at.allow and /etc/at.deny for existance and contents (see man at.allow)
    2. Check owner and access rights of the atd spool directory (/var/spool/cron/atjobs, daemon:daemon, 770 on Ubuntu)
    3. Check if atd daemon is running (systemctrl -a | grep atd on Ubuntu)
    4. tail -f /var/log/syslog (at execution time)
    5. journalctl -b | grep atd (found that here, contains further hints)

    The "Permission denied" error may also be caused by limited number of logins defined (for the at running user) in /etc/security/limits.conf.

提交回复
热议问题