1

I have a cron setup hourly, tried using @hourly and 0 * * * * syntax.

In both these cases I get the script triggered at odd intervals like 12:30, 13:30, 14:30 etc.

How do I change it to work at 12:00, 13:00, 14:00 etc.

My time zone is 'Asia/Calcutta' set using dpkg-reconfigure tzdata

I am setting the cronjob using crontab -e as a normal user not root.

closed as off-topic by dr01, phk, Kusalananda, Rui F Ribeiro, Anthon May 27 '17 at 21:57

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – dr01, Kusalananda, Anthon
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    Is the clock on your machine correct (Unix usually needs the system clock to be set to UTC)? Could it be a timezone issue? Are you in a timezone which is at 30 minute offset from UTC? – Kusalananda May 26 '17 at 8:12
  • Set it in to the user cron, not in machine crons in /etc/cron... – Romeo Ninov May 26 '17 at 8:13
  • 1
    Have you restarted your cron service since running dpkg-reconfigure tzdata? See - source – Benjamin May 26 '17 at 8:36
  • Thanks Benjamin. I just restarted cron service now. Will let you know how it goes. – Sandeep May 26 '17 at 8:39
  • 1
    @guntbert not a system-wide timezone change – roaima May 26 '17 at 11:51

Browse other questions tagged or ask your own question.