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.

OptionDescription
-mSends mail to the user after the job has finished
-r jobRemoves a scheduled at job from the queue
-q queuenameSpecifies a specific queue
timeSpecifies a time for the command to execute
-lReports all jobs scheduled for the invoking user
dateSpecifies 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. history