at - Queue Jobs For Later Execution
Commands can be scheduled for execution at a given time in the future by using the at command. This allows the system administrator to schedule a specific task, which may require significant system resources for execution later at a time when the system load is low. It takes the form:
at -f filename time_specification
at -f backupscript 11pm today
This example line would cause the file backupscript to be executed at 11:00pm today. The format for time specification is very flexible; for example, each of the following would work:
now + 5 minutes
8pm + two days
The file backupscript should contain a series of commands 1 per line that are to be executed. In this case, if the file backupscript contained instructions to create an archive file of the /home directory, compress it (zip it or gzip it), and then copy it to the backup media. This would work if one only wanted to run the script on a one-time basis. Backups are tasks that generally occur on repetitive basis. Therfore they would be better suited to be scheduled by the next command.
Home - Table Of Contents - Contact Us
CertiGuide to A+ (A+ 4 Real) (http://www.CertiGuide.com/apfr/) on CertiGuide.com
Version 1.0 - Version Date: March 29, 2005
Adapted with permission from a work created by Tcat Houser et al.
CertiGuide.com Version © Copyright 2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.