On this page
Task Scheduling
Introduction
Use the at command to automatically execute a job only once at a specified time.
at
The format for the at command is:
at -m -q queuename time date
at -r job
at -l
The table shows the options you can use to instruct the cron process on how to execute an at job.
Option | Description |
---|---|
-m | Sends mail to the user after the job has finished |
-r job | Removes a scheduled at job from the queue |
-q queuename | Specifies a specific queue |
time | Specifies a time for the command to execute |
-l | Reports all jobs scheduled for the invoking user |
date | Specifies an optional date for the command to execute, which is either a month name followed by a day number or a day of the week |
For example, to create an at job to run at 9:00 p.m. to locate and verify the file type of core files from the /export/home
directory, perform the command:
# at 9:00 pm
at> find /export/home -name core -exec file {} \; >> /var/tmp/corelog
at>
Last updated 11 Dec 2009, 20:54 +0200.