• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL

at, atq, atrm, batch

at, atq, atrm, batch

at Executes commands at a specified time.
atq Lists the user's pending jobs, unless the user is super user. If the user is super user, lists all users' jobs.
atrm Deletes jobs.
batch Executes commands as soon as system load levels permit. This is either when the average load drops to below 1.5 or the value specified at the invocation of atrun.
at [-q <queue>] [-f <file>] [-m] <time>

atq [-q <queue>] [-v]

atrm [-q <queue>] <job> [<job2>...]

batch [-f <file>] [-m]

Both at and batch take input from either standard input or the file specified by -f option. The working directory, environment (except for variables TERM, TERMCAP, DISPLAY, and _) and umask are retained from the time of invocation. Any at or batch command invoked from an su shell retains the current user ID.
Permission to use these commands depends on the files /var/at/at.allow and /var/at/at.deny. The super user may use these commands. If /var/at/at.allow exits, only the users (one per line) listed in the file may use these commands. If /var/at/at.allow does not exist, /var/at/at.deny is checked. Only users listed in /var/at/at.deny may not use these commands. If an empty /var/at/at.deny exists, all users may use these commands. If neither file exists, only the super user may use these commands. This is the default configuration.
-q <queue> Uses the specified queue. A queue consists of a single letter. Valid queue ranges are a to z and A to Z. If a job is submitted to a queue designated with an uppercase letter, it is treated as though it has been submitted to batch at that time. If atq is given a specific queue, it shows only the pending jobs in the specified queue.
-f <file> Executes commands in the specified <file> rather than from standard input.
-m Sends mail to the user when the job is complete, whether or not there was any output.
-v For atq, shows completed, but not yet deleted, jobs in the queue. Otherwise, shows the time the job will be executed.
<time> <time> may be given in a variety of formats. Times may be of the form <HHMM> or <HH:MM> for a specific time of day. If the time has already passed, the next day is assumed. You may also specify midnight, noon, or teatime (teatime for 4:00pm). You may also append AM, am, PM, or pm to a specific time. A time may also include a date in any of the following forms: <month-name> <day> [<year>] or MMDDYY or MM/DD/YY or DD.MM.YY. The date must follow the time specification. Time may also be given in increments, such as <now> + <count><time_units>, where <time_units> can be minutes, hours, days, or weeks. Terms today and tomorrow may also be used.



Not a subscriber?

Start A Free Trial

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint