Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

cron issue

Discussion in 'General Discussion' started by khoonchee, Jan 30, 2004.

  1. khoonchee

    khoonchee Well-Known Member
    PartnerNOC

    Joined:
    Oct 2, 2002
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    166
    Hello ,

    I have setup a cron as root to be run on every minutes.The cron sends an email to root@myservername each time it runs.I check the root crontab file and there was no "mailto" setup in the crontab file.

    Any other file that I should check to remove the emailing ?


    Thanks,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    CRON will always email the results of a job run, if there is any, to the owner of the crontab unless a MAILTO says to send it elsewhere.

    To prevent the job producing output and therefore sending an email add the following to the end of the command line within the crontab:

    > /dev/null 2<&1
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. khoonchee

    khoonchee Well-Known Member
    PartnerNOC

    Joined:
    Oct 2, 2002
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    166
    thanks ! that helps !:D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice