System Administration Guide, Volume 2

Examples--Creating an at Job

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


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

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 Saturday morning. The output of which was directed to big.file.


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