Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm configuring crontab jobs on an Ubuntu server and I'm trying to figure out how can I predict the next execution time for my jobs individually. It's just a matter of making sure I configured the pattern properly specially when it comes to complex patterns. Thanks.

share|improve this question
I'm confused by your question. There is no such thing as predicting the next execution time, as it's deterministically scheduled, and this can be read in the configuration file. Could you give an example of what you are trying to know? – m4573r Sep 5 '12 at 11:47
@m4573r is right, you can't "predict" when a cronjob is going to run, because it only runs exactly when you tell it to. You could send the out of the command to a log file by adding > /path/to/logfile to the end of the cronjob. – bobmagoo Sep 5 '12 at 11:51
@m4573r @bobmagoo, I'm using a java library called cron4j which offers the mechanism of predicting the next execution time for a pattern. I was wondering if a similar command exists on linux systems. Check this link: – Muhammad Gelbana Sep 5 '12 at 12:55

I don't know of any simple command line to do that. However you should give cron_event_predict a try, it seems to do exactly what you want.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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