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.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,830
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page