“atd” Command Usage Examples in Linux

«
»

This tutorial explains Linux “atd” command, options and its usage with examples.

atd is used to run jobs queued for later execution. atd runs jobs queued by using at command. atd won’t work if its spool directory is mounted via NTFS

Synopsis :

advertisement

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

Options :

-l
Specifies a limiting load factor, over which batch jobs should not be run, instead of the compile-time choice of 0.8. For an SMP system with n CPUs, you will probably want to set this higher than n-1.
-b
Specifiy 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).
-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. A script invoking atd -s is installed as /usr/sbin/atrun for backward compatibility.
-f
Run atd in the foreground.

advertisement
advertisement

Note : /var/spool/cron/atjobs The directory for storing jobs; this should be mode 700, owner daemon.
Note : /var/spool/cron/atspool The directory for storing output; this should be mode 700, owner daemon.
 

Sanfoundry Global Education & Learning Series – 1000 Linux Tutorials.

If you wish to look at all Linux commands and their usage examples, go to Linux Commands Tutorial.

Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!
advertisement
advertisement
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer & SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage, Advanced C Programming, SAN Storage Technologies, SCSI Internals & Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him @ LinkedIn | Youtube | Instagram | Facebook | Twitter