atrm Command

Purpose

Remove jobs spooled by the at command.

Syntax

atrm [ -f ] [ -i] [ -a | - ] [ Job ... | User ... ]

Description

The atrm command removes jobs that were created with the at command, but have not executed. If one or more job numbers is specified, the atrm command attempts to remove only those jobs.

If one or more user names is specified, all jobs belonging to those users are removed. This form of invoking the atrm command is useful only if you have root user authority.

Flags

Item Description
- Removes all jobs belonging to the user invoking the atrm command.
-a Removes all jobs belonging to the user invoking the atrm command. This flag is provided for System V compatibility.
-f Suppresses all information about the jobs being removed.
-i Prompts before a job is removed. Enter y to remove the job.

Security

Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

To remove job number root.62169200.a from the at command queue, enter:

atrm root.621619200.a

Files

Item Description
/usr/bin/atrm Contains the atrm program file.
/var/spool/cron/atjobs Specifies the spool area.