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 am trying to set a cronjob run in a different timezone..i have goolged a lot and found editing /etc/default/cron is the way to go...but this file is deprecated and I see the following message,so I added TZ=IST in file /etc/init/cron.conf...am not sure this will work,any tips on how to move forward please?

# This file has been deprecated. Please add custom options for cron to
# /etc/init/cron.conf and/or /etc/init/cron.override directly. See
# the init(5) man page for more information

.

share|improve this question

closed as off-topic by Michael Kjörling, Dave M, Joe Taylor, Carl B, Randolph West Oct 2 '13 at 21:26

  • This question does not appear to be about computer software or computer hardware within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

    
Which cron implementation, and what OS (type, distribution, version)? It seems reasonable to infer that you are talking about some Unix-like system, but the answer for AIX may be very different from one for Solaris or Slackware Linux. –  Michael Kjörling Aug 18 '13 at 18:32
    
@MichaelKjörling - is there a command to know which cron implementation ,OS type is "Linux 3.2.0-38-generic #61-Ubuntu SMP Tue Feb 19 12:18:21 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux" –  test Aug 18 '13 at 18:40
    
So it's some version of Ubuntu Linux. Try sudo dpkg -l '*cron*' in a terminal window, and edit the output of that as well as the contents of /etc/os-release (guessing here, but Debian has it so Ubuntu should too) into your question. You may also have better luck asking at either Ask Ubuntu or the Unix & Linux Stack Exchange -- flag your post for moderator attention (use the "flag" link below the tags and use the "other" reason) if you want it migrated, please don't simply repost it on another Stack Exchange site. Thank you. –  Michael Kjörling Aug 18 '13 at 18:44
    
ii anacron 2.3-14ubuntu1 cron-like program that doesn't go by time ii cron 3.0pl1-120ubuntu4 process scheduling daemon un cron-daemon <none> (no description available) un fcron <none> (no description available) –  test Aug 18 '13 at 19:00
4  
Question has been reposted as unix.stackexchange.com/questions/87268 –  Michael Kjörling Aug 18 '13 at 19:49

Browse other questions tagged or ask your own question.