← 返回命令列表

Linux command

atd 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start the at daemon

atd

Run in foreground

atd -f

Run with debug messages

atd -d

Set minimum interval

atd -b [120]

Process the queue once

atd -s

说明

atd is the daemon that executes jobs scheduled with the at command. It runs in the background, periodically checking /var/spool/at/ for pending jobs and executing them at their scheduled times. Jobs are submitted using at for time-specific scheduling or batch for load-based execution. The daemon runs jobs on behalf of the user who scheduled them, inheriting their environment and permissions. Access control is managed through /etc/at.allow and /etc/at.deny. If at.allow exists, only listed users can schedule jobs. If only at.deny exists, all users except those listed can schedule jobs. If neither exists, only root can use at. Related commands: - at - schedule a job for a specific time - atq - list pending jobs - atrm - remove a pending job - batch - schedule a job for when system load permits

参数

-d
Debug mode; print errors to stderr instead of syslog (implies -f)
-f
Run in foreground instead of daemonizing
-s
Process the at/batch queue once and exit
-l _load_avg_
Limit batch job execution to when system load is below this value (default: 1.5)
-b _interval_
Minimum seconds between starting batch jobs (default: 60)

FAQ

What is the atd command used for?

atd is the daemon that executes jobs scheduled with the at command. It runs in the background, periodically checking /var/spool/at/ for pending jobs and executing them at their scheduled times. Jobs are submitted using at for time-specific scheduling or batch for load-based execution. The daemon runs jobs on behalf of the user who scheduled them, inheriting their environment and permissions. Access control is managed through /etc/at.allow and /etc/at.deny. If at.allow exists, only listed users can schedule jobs. If only at.deny exists, all users except those listed can schedule jobs. If neither exists, only root can use at. Related commands: - at - schedule a job for a specific time - atq - list pending jobs - atrm - remove a pending job - batch - schedule a job for when system load permits

How do I run a basic atd example?

Run `atd` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d do in atd?

Debug mode; print errors to stderr instead of syslog (implies -f)