ATRM Linux Command
What is Linux atrm Command?
Explanation
atrm COMMAND:The atrm command is used to delete the job scheduled using the "at" command. Inorder to delete a scheduled job in the "at" list use the command atrm 3, where 3 is the job number. The job number can be identified using the "atq" or the "at -l" command. The command "atrm" is similar to "at -d" command.
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 remove/delete a scheduled at job using atrm:
atrm 3
The above command will remove the job number 3. Then, give atq command to check the scheduled jobs. It will produce the below output:
2 Thu Jan 14 10:30:00 2016 a root
1 Tue Jan 12 21:30:00 2016 a root