The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cron not executing

Discussion in 'General Discussion' started by ullalla, Mar 16, 2011.

  1. ullalla

    ullalla Well-Known Member

    Joined:
    Jan 20, 2006
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    16
    I have a script to take daily backups for cpanel users the scripts is like :

    If I run this script manually then it generates the backup and moves to destination properly but when I use cronjob to do so it wont work :( I have set the cron as :


    As well cron logs aren;t hleping as :


    Any guideline on this is appreciated.
     
    #1 ullalla, Mar 16, 2011
    Last edited: Mar 16, 2011
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Are you running the cron as the root user in crontab -e or as some non-root user?

    Are crons even running on the system?

    Code:
    ps aux | grep cron
    Does the cron command get executed at all?

    Code:
    grep backup.sh /var/log/cron
     
  3. ullalla

    ullalla Well-Known Member

    Joined:
    Jan 20, 2006
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    16
    I am running cron as root user and yes crond is running on the server.

    the cron log are saying nothing :

     
Loading...

Share This Page