|
|
This directory of Linux commands is from Linux in a Nutshell, 5th Edition. Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf. Buy it now, or read it online on Safari Bookshelf. atat [options] time [date] Execute commands at a specified time and optional date. The commands are read from standard input or from a file. (See also batch.) End input with EOF. time can be formed either as a numeric hour (with optional minutes and modifiers) or as a keyword. It can contain an optional date, formed as a month and date, a day of the week, or a special keyword (today or tomorrow). An increment can also be specified. The at command can always be issued by a privileged user. Other users must be listed in the file /etc/at.allow if it exists; otherwise, they must not be listed in /etc/at.deny. If neither file exists, only a privileged user can issue the command. Options
Time
Date
IncrementSupply a numeric increment if you want to specify an execution time or day relative to the current time. The number should precede any of the keywords minute, hour, day, week, month, or year (or their plural forms). The keyword next can be used as a synonym of + 1: ExamplesIn typical usage, you run at and input commands that you want executed at a particular time, followed by EOF.
$ at 1:00 am tomorrow
at> ./total_up > output
at> mail joe < output
at> <EOT> The two commands could also be placed in a file and submitted as follows: $ at 1:00 am tomorrow < scriptfile More examples of syntax follow. Note that the first two commands here are equivalent: $ at 1945 December 9 $ at 7:45pm Dec 9 $ at 3 am Saturday $ at now + 5 hours $ at noon next day |
|
|