Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

atd command in Linux with examples

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

atd is a job scheduler daemon that runs jobs scheduled for later execution. These jobs are one-time task(not recurring) at a specific time scheduled using ‘at’ or ‘batch’ utility.

Syntax:

atd [-l load_avg] [-b batch_interval] [-d] [-f] [-s]

Options:

  • -l : Specifies a limiting load factor, over which batch jobs should not be run, instead of the compile-time choice of 1.5.
  • -b : Specify the minimum interval in seconds between the start of two batch jobs (60 default).
  • -d : Debug; print error messages to standard error instead of using syslog(3). This option also implies -f.
  • -f : Run atd in the foreground.
  • -s : Process the at/batch queue only once. This is primarily of use for compatibility with old versions of at; atd -s is equivalent to the old atrun command.

Starting atd:

  • To start atd in the current session, use below command:
    $ service atd start 
  • To start atd automatically at boot time, use below command:
    $ chkconfig atd on 
  • While using ‘at’ utility, the following issue can be seen:

    It means that atd is not running and needs to be started.

Stopping atd:

  • To stop atd in the current session, use below command:
    $ service atd stop 
  • To disable atd from starting at boot time, use below command:
    $ chkconfig atd off 

Restarting atd: To restart atd, use below command.

$ service atd restart 

Checking atd status: To determine if atd is running or not, use below command:

$ service atd status 
  • If atd is running, status will be “active”:

  • If atd is not running, status will be “inactive”:

    Example:

My Personal Notes arrow_drop_up
Last Updated : 04 Apr, 2019
Like Article
Save Article
Similar Reads
Related Tutorials