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.

Configure Cron Job Notifications

Discussion in 'General Discussion' started by ccondo, Oct 14, 2005.

  1. ccondo

    ccondo Member

    Joined:
    Nov 2, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Memphis
    I have a cron job that runs every 3 minutes and I get an email every 3 minutes from this job. How can I exclude the notifications from this one job?

    Thanks for any help.
     
  2. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    444
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    US
    cPanel Access Level:
    DataCenter Provider
    Try editing the crontab, it may be setted there:

    "crontab -e" .
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,472
    Likes Received:
    20
    Trophy Points:
    463
    Location:
    Go on, have a guess
    You can add the following at the end of the crontab line which ignores the output and so stops it emailing you:

    */3 * * * * /path/to/your/script.pl > /dev/null 2>&1
     
Loading...

Share This Page