Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Changing time for scripts in /etc/cron.daily

Discussion in 'General Discussion' started by gallot, Jun 29, 2006.

  1. gallot

    gallot Active Member

    Joined:
    Oct 24, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    156
    Hello,

    How can I change the time when /etc/cron.daily will run? I think I have done this before but just can't remember how it was done.

    Thanks!
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,366
    Likes Received:
    6
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Assuming Linux - /etc/crontab.
     
  3. Bash

    Bash Member

    Joined:
    May 7, 2005
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    151
    It would depend on how your file directory was setup. Try using the locate command:

    locate cron.daily

    Then you will get a listing and be able to see where the file is exactly located.

    /etc/cron.daily
    /etc/cron.daily/0anacron
    /etc/cron.daily/logrotate
    /etc/cron.daily/makewhatis.cron
    /etc/cron.daily/rpm
    /etc/cron.daily/slocate.cron
    /etc/cron.daily/tetex.cron
    /etc/cron.daily/tmpwatch
    /etc/cron.daily/yum.cron
    /var/spool/anacron/cron.daily

    -Bash
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Erm, no. The correct answer was given by sawbuck. /etc/crontab is the configuration file that disctates when cron.daily is actually run.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. gallot

    gallot Active Member

    Joined:
    Oct 24, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    156
    Thanks! i got it. It is /etc/crontab indeedd
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice