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, how to remove them...

Discussion in 'General Discussion' started by jmweb, Nov 16, 2003.

  1. jmweb

    jmweb Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    6
    I have a cron job running however I do not know where nor how to get rid of it. It emails me once a minute and I do not know where it is originating.


    It is showing this in the emails...


    --04:30:00-- http://,/
    => `/usr/local/apache/htdocs/processes/111603/04:30:00-cpu.html'
    Resolving ,... failed: Host not found.
    --04:30:00-- https://localhost:2087/scripts2/showcpuusage
    => `/usr/local/apache/htdocs/processes/111603/04:30:00-cpu.html'
    Resolving localhost... done.
    Connecting to localhost[127.0.0.1]:2087... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [text/html]

    0K .......... .... 43.55 KB/s

    04:30:01 (43.55 KB/s) - `/usr/local/apache/htdocs/processes/111603/04:30:00-cpu.html' saved [15339]


    FINISHED --04:30:01--
    Downloaded: 15,339 bytes in 1 files
     
  2. fmalekpour

    fmalekpour Well-Known Member
    PartnerNOC

    Joined:
    Dec 4, 2002
    Messages:
    85
    Likes Received:
    0
    Trophy Points:
    6
    List of cron jobs can be found at:
    /var/spool/cron

    Don't edit those files, just find the file containing that job, file name will be the username, then:
    crontab -u filename -e

    remove the line and save.

    Farhad
     
  3. jmweb

    jmweb Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    6
    One of the cron jobs is sending an email to root@hostname.mydomain.com every 5 minutes....anyone have any fixes on this so it does not go to the mail queue
     
  4. thedavid

    thedavid Well-Known Member

    Joined:
    Nov 22, 2002
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    Assuming you know which line in the crontab is doing this, just tacking on a ">/dev/null" at the end of the command (without the quotes, of course) will stop emails from being sent to root.

    If you don't know where it's coming from, check /etc/crontab for any interesting entries or the root user's crontab. Drop to shell and 'crontab -l' as root.

    -David
     
  5. jmweb

    jmweb Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    6
    and how to I tack on that /dev/null when I find it?
     
Loading...

Share This Page