AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  cron jobs in UTC

    Posted Wed March 20, 2013 09:20 AM

    Originally posted by: karelknake


    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.


  • 2.  Re: cron jobs in UTC

    Posted Thu March 21, 2013 03:11 AM

    Originally posted by: romeo_ninov


    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


  • 3.  Re: cron jobs in UTC

    Posted Thu March 21, 2013 08:31 AM

    Originally posted by: The_Doctor


    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.