0

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.

3
  • 2
    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, 2012 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, 2012 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: sauronsoftware.it/projects/cron4j/manual.php#p13 Sep 5, 2012 at 12:55

1 Answer 1

0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .