2

How can I list all cron jobs which are scheduled to run? I need to check if my cron jobs are working.

I guess they don't even run, because our Magento does not send out any order confirmation emails anymore.

4
  • 1
    All cron jobs are always scheduled to run. You may list them with crontab -l. If this was not what you were asking, then please clarify your question. Also add any details that you are able to provide regarding things you've noticed in logs and what your cron job's crontab entry looks like.
    – Kusalananda
    Feb 15, 2019 at 8:57
  • 1
    You should check /var/spool/cron/* and /etc/cron.*/*. Also, /etc/crontab.
    – Marcel
    Feb 15, 2019 at 9:04
  • @Kusalananda, thx it shows all scheduled cron jobs. I can accept your answer.
    – Black
    Feb 15, 2019 at 9:15
  • Is there also a way to see when a cron job was last executed?
    – Black
    Feb 15, 2019 at 9:15

2 Answers 2

2

From the comment of @Marcel

You should check /var/spool/cron/* and /etc/cron.*/*. Also, /etc/crontab

0

This will give you a list of all jobs on your system and where they are defined:

sudo sh -c 'more /etc/crontab /etc/cron.d/* /var/spool/cron/crontabs/*' 2>/dev/null | less

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.