ATQ Linux Command
What is Linux atq Command?
Explanation
atq COMMAND:The atq command displays all the "at" command jobs that are scheduled or currently running. The "atq" command is equivalent to "at -l" command. If the user is the superuser the command lists jobs for all users. The format of the output lines is: Job number, date, hour, job class. The first number shown is the Job number, followed by the time in which the process is to be executed, and the user name.
SYNTAX:
at [-V] [-q x] [-f file] [-mMlbv] timespec ...
at [-V] [-q x] [-f file] [-mMlbv] -t time
at -c job ...
atq [-V] [-q x]
at [ -rd ] job ...
atrm [-V] job ...
batch
OPTIONS:
-V |
prints the version number to standard error. |
-q queue |
uses the specified queue. A queue designation consists of a single letter; valid queue designations range from a to z. and A to Z. The a queue is the default for at and the b queue for batch. Queues with higher letters run with increased niceness. The special queue "=" is reserved for jobs which are currently running. |
-m |
Send mail to the user when the job has completed even if there was no output. |
-f file |
Reads the job from file rather than standard input. |
-l |
Is an alias for atq. |
-d |
Is an alias for atrm. |
-v |
Shows the time the job will be executed. |
EXAMPLE:
- To view all the scheduled at jobs using atq:
atq
The above atq command will list all the pending at jobs.
3 Thu Jan 14 22:30:00 2016 a root
2 Thu Jan 14 10:30:00 2016 a root
1 Tue Jan 12 21:30:00 2016 a root
The first number shown is the Job number, followed by the time in which the process is to be executed, and the user name.