Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

atrm(1)

Name

atrm - remove jobs spooled by at or batch

Synopsis

atrm [-afi] [ [job #] [user]...]

Description

The atrm utility removes delayed-execution jobs that were created with the at(1) command, but have not yet executed. The list of these jobs and associated job numbers can be displayed by using atq(1).

atrm removes each job-number you specify, and/or all jobs belonging to the user you specify, provided that you own the indicated jobs.

You can only remove jobs belonging to other users if you have solaris.jobs.admin privileges.

Options

The following options are supported:

–a

All. Removes all unexecuted jobs that were created by the current user. If invoked by the privileged user, the entire queue is flushed.

–f

Force. All information regarding the removal of the specified jobs is suppressed.

–i

Interactive. atrm asks if a job should be removed. If the response is affirmative, the job is removed.

Files

/var/spool/cron/atjobs

Spool area for at jobs

Environment Variables

See environ(7) for descriptions of the following environment variables that affect the execution of atrm: LANG, LC_ALL , LC_COLLATE, LC_CTYPE, LC_MESSAGES, and NLSPATH.

Affirmative responses are processed using the extended regular expression defined for the yesexpr keyword in the LC_MESSAGES category of the user's locale. The locale specified in the LC_COLLATE category defines the behavior of ranges, equivalence classes, and multi-character collating elements used in the expression defined for yesexpr. The locale specified in LC_CTYPE determines the locale for interpretation of sequences of bytes of text data a characters, the behavior of character classes used in the expression defined for the yesexpr. See locale(7)

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os

See Also

at(1), atq(1), auths(1), auth_attr(5), attributes(7), environ(7), locale(7), cron(8)