ATRM Linux Command
What is Linux atrm Command?
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.
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
||prints the version number to standard error. |
||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.
||Send mail to the user when the job has completed even if there was no output.
||Reads the job from file rather than standard input.
||Is an alias for atq.
||Is an alias for atrm.
||Shows the time the job will be executed.
- To remove/delete a scheduled at job using atrm:
atrm 3The 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