System Administration Guide, Volume 2

at Command Description

Submitting an at job file includes:

  1. Invoking the at utility, specifying a command execution time.

  2. Entering a command or script to execute later.


    Note -

    If output from this command or script is important, be sure to direct it to a file for later examination.


For example, the following at job removes core files from the user account smith near midnight on the last day of July.


$ at 11:45pm July 31
at> rm /home/smith/*core*
at> Press Control-d
commands will be executed using /bin/csh
job 933486300.a at Sat Jul 31 23:45:00 1999

at Command Security

You can set up a file to control access to the at command, permitting only specified users to create, remove, or display queue information about their at jobs. The file that controls access to at, /etc/cron.d/at.deny, consists of a list of user names, one per line. The users listed in this file cannot access at commands.

The at.deny file, created during SunOS software installation, contains the following user names:


daemon
bin
smtp
nuucp
listen
nobody
noaccess

With superuser privileges, you can edit this file to add other user names whose at access you want to restrict.