tags:

views:

21

answers:

1

Hello

Can anyone suggest a way to set a Cron trigger to run at half past the hour every hour?

So far, I've got one working hourly as per "0 0/60 * * * ?".

Am I looking at "0 0/30 * * * ?" at all?

Mr Morgan.

+1  A: 

I would use 30 * * * * to run a command half past every hour.

It is worth remembering that in crontab you define a pattern to match the current time against and not an exact time. Every minute crond will awaken and match the current time against your pattern and if there is a match, run your command.

Martin Skøtt
So should 60 * * * * be used to run a job hourly?
Mr Morgan
Not exactly. You would use 59 * * * * * to run a job at the last minute of every hour. I highly recommend taking a look at man 5 crontab.
Martin Skøtt
Using Chron as implemented in Quartz in Java on Windows.
Mr Morgan
And here I thought you were talking about cron on Unix :) Quartz looks like it could be use full, thanks for mentioning it.
Martin Skøtt