atq
From NetBSD Wiki
With atq(1) you can see a list of jobs that are waiting in the at queue, ie the list of programs that have been scheduled by at.
Its usage is very simple in the common case:
$ atq Date Owner Queue Job 21:52:00 08/01/06 yoda c 6 20:52:00 09/03/06 yoda c 7
A user can only see the jobs he started himself. Root can see all user's jobs.
The job number is what you need when you want to remove a job with atrm (it's like ps relates to kill or lpq to lprm). The queue is a queue name, which is between a and z or A and Z. The default job queue for at is c (for batch it is E), and you won't need to use any other queue except in complicated situations.
The date that is displayed is the date the job will be executed. If a job is busy but not completed, you can see it with the -v switch.
If you're not sure about what a job does again (after all, a timestamp and job number are not that descriptive), you can easily get its contents by letting at cat it:
$ at -c 6 <dump of job 6>
You'll notice that the entire environment and a cd command to the current working directory at the time when you invoked at gets inserted in front of the file. This is to ensure that the at job will behave predictably exactly as if you executed it from the shell.
