1757442 Members
2328 Online
108861 Solutions
New Discussion юеВ

at job question

 
SOLVED
Go to solution
Allanm
Super Advisor

at job question

Hi Folks,

How do I list the jobs ids and associated commands being run after I have scheduled some at jobs at the same time.

Thanks,
Allan.
3 REPLIES 3
Patrick Wallek
Honored Contributor
Solution

Re: at job question

'man at' is a good starting point.

'at -l' will list current at jobs and their id. You can then go to /var/spool/cron/atjobs and look for a file with the same name as the job id. That file is what will be executed when the job runs.
TTr
Honored Contributor

Re: at job question

"at -l" will list the scheduled or *spooled* at jobs. If you want to see the actual *spooled* at jobs, look in /var/spool/cron/atjobs, you will a file that has the at job id as the name.

("crontab -l" and /var/spool/cron/crontabs are the cron equivalent)

By the way you will only see at jobs that are scheduled to run at a future date/time, you will not see any jobs that are scheduled with the "at now" command.
Allanm
Super Advisor

Re: at job question

Thanks Folks!