I thought I understood cron but it appears that I don't.
I am using cron on Red Hat Enterprise Linux v. 4
We organize cron jobs by storing them in /etc/cron.d. They are all owned by root. (have root in the cron spec in the .cron file)
When stored there, if coded correctly, the jobs run.
However, even though logged in as root
crontab -l
does not list the jobs in /etc/cron.d, even though they are actually running.
What am I not understanding? Every web search I've done on this tells me that crontab -l
is the command to run. Yet it doesn't list all the jobs it's running.
UPDATE: Since it wasn't clear, my question is really
What command lets you see all the cron jobs that are scheduled to run for a given user?
You can find many sources that say crontab -l
is that command, but that is demonstrably not so.