Chapter 14. The cron
Daemon and crontab
The at command reads from standard input the names of commands to be run at a later time and allows you to specify when the commands should be run. The at command mails you all output from standard output and standard error for the scheduled commands, unless you redirect that output. It also writes the job number and the scheduled time to standard error.
Submit a job to be run at a later time using the format:
at -f filename -t CCYYMMDDhhmmSS Increment
where the values of the -t and -f flags are:
Instead of the -t flag, you can also use the following keywords:
Other flags and values can be found in the AIX product documentation.
The spool area directory for the at command is /var/spool/cron/atjobs. After a job is scheduled to run, a file exists in the /var/spool/cron/atjobs directory and the atq command shows:
# ls /var/spool/cron/atjobs root.915213600.a # atq root.915213600.a Fri Jan 1 12:00:00 CST 1999
After the job is deleted, the /var/spool/cron/atjobs directory is empty and the atq command no longer shows anything:
# at -r root.915213600.a The root.915213600.a at file is deleted. # ls /var/spool/cron/atjobs # atq