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 Jobs problem ?

Discussion in 'General Discussion' started by map007, Jul 26, 2009.

  1. map007

    map007 Active Member

    Joined:
    Jun 5, 2008
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    After migration of the server , some users cronjobs are not viewable or hide from cPanel >> cron jobs

    but still its running , please guide me how can i restore that cron jobs so i can modify it.
    where i can find those crons so i can restore it.


    Thanks in advance.
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    The location you want is: /var/spool/cron
     
  3. map007

    map007 Active Member

    Joined:
    Jun 5, 2008
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Hi Spiral ,

    I already checked there but the user is not able under /var/spool/cron directory but still the that user's crons are working .....

    Guide me where i can check the user's cron or how to restore that crons.....


    Thank you.
     
  4. map007

    map007 Active Member

    Joined:
    Jun 5, 2008
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    HI,

    Any body have solution ?????

    Thank you.
     
  5. sajna_m

    sajna_m Registered

    Joined:
    Jul 28, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi map007,

    Try this:

    SSH to your server as root.

    Change the permissions of the file /usr/bin/crontab to 4755

    chmod 4755 /usr/bin/crontab

    :)
     
    #5 sajna_m, Jul 28, 2009
    Last edited: Aug 3, 2009
  6. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    What does "crontab -lu username" result?
     
  7. sajna_m

    sajna_m Registered

    Joined:
    Jul 28, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    The command 'crontab -lu username' will list all the cron jobs set under the username specified.

    :)
     
Loading...

Share This Page