Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
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 '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: sauronsoftware.it/projects/cron4j/manual.php#p13 –  Muhammad Gelbana Sep 5 '12 at 12:55
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.