Penguin
Annotated edit history of at(1) version 2, including all changes. View license author blame.
Rev Author # Line
1 perry 1 !!NAME
2 CraigBox 2 at, batch, atq, atrm - queue, examine or delete jobs for later execution
1 perry 3
4 !!SYNOPSIS
2 CraigBox 5 __at__ [[ __-V__ ] [[ __-q__ ''queue'' ] [[ __-f__ ''file'' ] [[ __-mldbv__ ] __TIME__ %%%
6 __at -c__ ''job'' [[ ''job...'' ] %%%
7 __atq__ [[ __-V__ ] [[ __-q__ ''queue'' ] %%%
8 __atrm__ [[ __-V__ ] ''job'' [[ ''job...'' ] %%%
9 __batch__ [[ __-V__ ] [[ __-q__ ''queue'' ] [[ __-f__ ''file'' ] [[ __-mv__ ] [[ __TIME__ ]
1 perry 10
11 !!DESCRIPTION
2 CraigBox 12 __at__ and __batch__ read commands from standard input or a specified file which are to be executed at a later time, using __/bin/sh__ .
13 ;__at__ : executes commands at a specified time.
14 ;__atq__ : lists the user's pending jobs, unless the user is the superuser; in that case, everybody's jobs are listed. The format of the output lines (one for each job) is: Job number, date, hour, job class.
15 ;__atrm__ : deletes jobs, identified by their job number.
16 ;__batch__ : executes commands when system load levels permit; in other words, when the load average drops below 0.8, or the value specified in the invocation of __atrun__ .
1 perry 17
2 CraigBox 18 __At__ allows fairly complex time specifications, extending the POSIX.2 standard. It accepts times of the form __HH:MM__ to run a job at a specific time of day. (If that time is already past, the next day is assumed.) You may also specify __midnight,__ __noon,__ or teatime(4pm) and you can have a time-of-day suffixed with __AM__ or __PM__ for running in the morning or the evening. You can also say what day the job will be run, by giving a date in the form __month-name__ __day__ with an optional __year,__ or giving a date of the form __MMDDYY__ or __MM/DD/YY__ or __DD.MM.YY.__ The specification of a date ''must'' follow the specification of the time of day. You can also give times like __now__ __+__ ''count'' ''time-units,'' where the time-units can be __minutes,__ __hours,__ __days,__ or __weeks__ and you can tell __at__ to run the job today by suffixing the time with __today__ and to run the job tomorrow by suffixing the time with __tomorrow.__
1 perry 19
2 CraigBox 20 For example, to run a job at 4pm three days from now, you would do __at 4pm + 3 days,__ to run a job at 10:00am on July 31, you would do __at 10am Jul 31__ and to run a job at 1am tomorrow, you would do __at 1am tomorrow.__
1 perry 21
2 CraigBox 22 The exact definition of the time specification can be found in ''/usr/share/doc/at-3.1.8/timespec'' .
1 perry 23
2 CraigBox 24 For both __at__ and __batch__ , commands are read from standard input or the file specified with the __-f__ option and executed. The working directory, the environment (except for the variables __TERM__ , __DISPLAY__ and _____ ) and the umask are retained from the time of invocation. An __at __ - or __batch __ - command invoked from a su(1) shell will retain the current userid. The user will be mailed standard error and standard output from his commands, if any. Mail will be sent using the command __/usr/sbin/sendmail__ . If __at__ is executed from a su(1) shell, the owner of the login shell will receive the mail.
1 perry 25
2 CraigBox 26 The superuser may use these commands in any case. For other users, permission to use at is determined by the files ''/etc/at.allow'' and ''/etc/at.deny'' .
1 perry 27
2 CraigBox 28 If the file ''/etc/at.allow'' exists, only usernames mentioned in it are allowed to use __at__ .
1 perry 29
2 CraigBox 30 If ''/etc/at.allow'' does not exist, ''/etc/at.deny'' is checked, every username not mentioned in it is then allowed to use __at__ .
1 perry 31
2 CraigBox 32 If neither exists, only the superuser is allowed use of at.
1 perry 33
2 CraigBox 34 An empty ''/etc/at.deny'' means that every user is allowed use these commands, this is the default configuration.
1 perry 35
36 !!OPTIONS
37
2 CraigBox 38 ;__-V__ : prints the version number to standard error.
39 ;__-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.
1 perry 40
2 CraigBox 41 If a job is submitted to a queue designated with an uppercase letter, it is treated as if it had been submitted to batch at that time. If __atq__ is given a specific queue, it will only show jobs pending in that queue.
42 ;__-m__ : Send mail to the user when the job has completed even if there was no output.
43 ;__-f__ '' file'' : Reads the job from __file__ rather than standard input.
44 ;__-l__ : Is an alias for __atq.__
45 ;__-d__ : Is an alias for __atrm.__
1 perry 46
2 CraigBox 47 ;__-v__ : Shows the time the job will be executed.
1 perry 48
2 CraigBox 49 Times displayed will be in the format "1997-02-20 14:50" unless the environment variable __POSIXLY_CORRECT __ is set; then, it will be "Thu Feb 20 14:50:00 1996".
50 ;.B : -c cats the jobs listed on the command line to standard output.
1 perry 51
52 !!FILES
2 CraigBox 53 ''/var/spool/at''
54 ''/var/spool/at/spool''
55 ''/proc/loadavg''
56 ''/var/run/utmp''
57 ''/etc/at.allow''
58 ''/etc/at.deny''
1 perry 59
60 !!SEE ALSO
2 CraigBox 61 cron(1), nice(1), sh(1), umask(2), atd(8).
1 perry 62
63 !!BUGS
2 CraigBox 64 The correct operation of __batch__ for Linux depends on the presence of a ''proc'' - type directory mounted on ''/proc'' .
1 perry 65
2 CraigBox 66 If the file ''/var/run/utmp'' is not available or corrupted, or if the user is not logged on at the time __at__ is invoked, the mail is sent to the userid found in the environment variable __LOGNAME__ . If that is undefined or empty, the current userid is assumed.
1 perry 67
2 CraigBox 68 __At__ and __batch__ as presently implemented are not suitable when users are competing for resources. If this is the case for your site, you might want to consider another batch system, such as __nqs__ .
1 perry 69
70 !!AUTHOR
2 CraigBox 71 At was mostly written by Thomas Koenig, ig25@rz.uni-karlsruhe.de.
1 perry 72
2 CraigBox 73 !!HOW TO SIMPLY USE THE BLOODY THING
1 perry 74
2 CraigBox 75 $ echo foo | at 2am
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 8 times)