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.

[absolute newbie] Automate account/popbox creation using /scripts perl scripts ?

Discussion in 'General Discussion' started by PaulBBonline, Oct 22, 2009.

  1. PaulBBonline

    PaulBBonline Registered

    Joined:
    Oct 22, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi there

    I'm a unix/linux sysadmin with very little perl or cpanel experience, so please be gentle with me.

    I'm trying to work out how to automate creation of accounts and mailboxes using the perl scripts in /scripts, so that we can integrate into our registration process. I've had some limited success with creating an account using /scripts/wwwacct, HOWEVER it doesn't seem to be possible to specify a package name using this script. Can anyone advise how I do this please ?

    Many thanks
    Paul
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Regarding specifying a package, the package is passed in the plan parameter. Here's the syntax of /scripts/wwwacct in 11.25:

    If you prefer to use a pre-packaged automation solution, you may want to pursue one of the many billing automation solutions that work with cPanel/WHM. We have a list of these posted at: http://forums.cpanel.net/f77/third-party-applications-available-cpanel-whm-106785.html
     
  3. PaulBBonline

    PaulBBonline Registered

    Joined:
    Oct 22, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for your reply I managed to work it out myself on Friday (package = plan, nice and obvious huh ?).

    Thanks again

     

Share This Page