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!

Autosuspend script

Discussion in 'cPanel Developers' started by Efimrat, Sep 6, 2015.

  1. Efimrat

    Efimrat Registered

    Joined:
    Sep 6, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Israel
    cPanel Access Level:
    Root Administrator
    Hi Everyone,
    I have encountered an issue which i need your help on:
    I would like to run a script through crontab which checks all my Cpanel account for quota excessive use.
    The script should check the quota and quota limit and automatically suspend the user which goes over-quota.
    When i run the script i get the same error for every user.
    I'm attaching a document that contains:
    1: The cron job error
    2: the script itself
    3: the quota.txt example text the the script generates.

    I would appreciate any help you may offer.

    Thanks.
    SUSPEND ERROR.jpg
     
    #1 Efimrat, Sep 6, 2015
    Last edited by a moderator: Sep 6, 2015
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,409
    Likes Received:
    1,954
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Could you post the script in CODE tags instead of in an image attachment? You will likely receive more user-feedback this way.

    Thank you.
     
    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