Duke University
Center for the Study of Aging and Human Development

     
       
Home Page

Computing & Statistics Lab

How to Submit a Batch Job Using the 'at' Command

To run a job at the lower priority of the UNIX batch processor, but to
run it right now -
1. Type 'at -m now' to go to the batch processor. 'now' is interpreted as
   the time at which you want to run the job. '-m' tells the system to
   send you email when the job has completed.
2. At the 'at' prompt, type sas and the name of your sas program.
3. Press 'Enter'.
4. Press control-d.

Here's an example:
irv@rubin> at -m now
at> sas oranges.sas
at>  (control d)

======================

To run a job at a specified future time in the UNIX batch processor -
1. Type 'at -m specified_time'. This will run your job at the time you
   specify on the same day. (You can also specify a complete time and 
   date. Issue the command 'man at' to get complete info on using 'at'.)
2. At the 'at' prompt, type sas and the name of your sas program.
3. Press 'Enter'.
4. Press control-d. The last 2 lines in the notification below are from
   the system indicating that your commands will be executed and the 
   time it will happen.

Here's an example -
irv@rubin> at -m 16:02
at> sas oranges.sas
at> 
commands will be executed using /bin/tcsh
job 1038862920.a at Mon Dec  2 16:02:00 2002
  
About Us | Weekly Bulletin | Center Report | People | Research | Education | Service | Pepper Grant | Links | DUMC | Duke
Copyright 2004 Duke University Center for the Study of Aging and Human Development

Questions or Comments? Contact Webmaster