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!

Adding > /dev/null 2>&1 to cron

Discussion in 'General Discussion' started by greektranslator, Oct 12, 2018 at 3:53 AM.

  1. greektranslator

    greektranslator Active Member

    Joined:
    Jun 5, 2011
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    51
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    I had this line

    Code:
    26 0 * * * (/usr/local/cpanel/scripts/fix-cpanel-perl; /usr/local/cpanel/scripts/upcp --cron)
    And changed to in order to stop upcp emails:

    Code:
    26 0 * * * (/usr/local/cpanel/scripts/fix-cpanel-perl; /usr/local/cpanel/scripts/upcp --cron > /dev/null 2>&1)
    Is this the correct way?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Anupam SG

    Anupam SG Active Member

    Joined:
    Aug 29, 2018
    Messages:
    34
    Likes Received:
    15
    Trophy Points:
    8
    Location:
    Earth
    cPanel Access Level:
    Root Administrator
    Looks correct.
     
    cPanelLauren likes this.
  3. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,072
    Likes Received:
    215
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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