System Administration Guide: Advanced Administration

Examples—Creating an at Job

The following example shows the at job that user jones created to remove her backup files at 7:30 p.m. She used the -m option so that she would receive an email message after her job completed.


$ at -m 1930
at> rm /home/jones/*.backup
at> Press Control-D
job 897355800.a at Thu Jul  12 19:30:00 2001

She received a mail message which confirmed the execution of her at job.


Your “at” job “rm /home/jones/*.backup”
completed.

The following example shows how jones scheduled a large at job for 4:00 a.m. Saturday morning. The job output was directed to big.file.


$ at 4 am Saturday
at> sort -r /usr/dict/words > /export/home/jones/big.file