• 2 replies
  • Latest Post - ‏2013-03-21T12:30:59Z by The_Doctor
1 Post

Pinned topic cron jobs in UTC

‏2013-03-20T13:20:22Z |
I need to synchronize the running of certain jobs on my server (in Americas) with a server in Europe. Switching to daylilght saving time is done on deifferent dates, so I want to use UTC to run the jobs, without changing my servers timezone to UTC.
I created a user that has export TZ=UTC in its .profile, which gives UTC time when running 'date' command, but the jobs in his crontab still run in EDT.
Does AIX support the CRON_TZ entry in crontab? It does not give an error but the cronjobs still run in EDT.
Any help appreciated.
Updated on 2013-03-21T12:30:59Z at 2013-03-21T12:30:59Z by The_Doctor
  • romeo_ninov
    31 Posts

    Re: cron jobs in UTC

    The variables you set are related to user, not to cron daemon. TO set environment variable for daemon you should implement special script, which will start the daemon. Or you should implemet external solution like ControlM
  • The_Doctor
    100 Posts

    Re: cron jobs in UTC

    Have you considered setting up a unique LPAR.... with minimal memory & minimal entitlement ? Run that LPAR in TZ=GMT & co-ordinate activities with your European counterpart.