Last Updated: February 25, 2016
·
704
· pykler

at command

linux at command is awesome! The one thing that I found a little confusing and struggled with is seeing the submitted command. One way if you have root access is to go to

/var/spool/cron/atjobs

But if you are an idealist like me and want to view your personal commands without jumping to root or simply on a shared machine with no root access ... the at man pages can be a little confusing, the correct switch is the -c switch passed to at (not atq)

at -c job [job...]
-c     cats the jobs listed on the command line to standard output.

So the correct sequence of steps is as follows

atq # and grab the job id(s)
at -c 6 # to see the command submitted with id 6