Monday, July 12, 2010

How to see all scheduled at jobs

Once an "at" job is scheduled, we can see the time the job is scheduled for by running atq.  This displays a unique job id along with scheduled time, but does not show the file or command name.  One can look into the folder /var/spool/cron/atjobs and can do a cat on the file 'job id' to see which command is actually scheduled.  All cron jobs can be found in /var/spool/cron/crontabs file.