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.

how to find a cron job

Discussion in 'General Discussion' started by delia, May 29, 2010.

  1. delia

    delia Member

    Joined:
    Feb 11, 2008
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    3
    There seems to be a cron job running that was not set up in the correct domain. I must have done this at some point by mistake but now I need to delete the cron job and I don't know what site it's on. Is there any way to find out what cron jobs are set up on my server?
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    All the cronjob files are stored under the directory

    To check the cronjobs set as root, execute the command:

    If you know the exact user under which the cronjob was added, execute

    If you are not sure about the exact domain, search the file which is executing under all the cron files

    where, filename is the one which is executing. It will show you the list of files in which the cronjob in question is added.
     
    #2 madaboutlinux, May 29, 2010
    Last edited: May 29, 2010
  3. delia

    delia Member

    Joined:
    Feb 11, 2008
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    3
    Thanks, that gave me the direction I needed to get started with.
     
Loading...

Share This Page