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

PaulBBonline

Registered
Oct 22, 2009
2
0
51
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
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
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:

Please use the this syntax
wwwacct <domain> <user> <pass> <quota> <cpmod[advanced/?]> <ip[y/n]> <cgi[y/n]> <frontpage[y/n]> <maxftp> <maxsql> <maxpop> <maxlst> <maxsub> <bwlimit> <hasshell[y]/[n]> <owner> <plan> <maxpark> <maxaddon> <featurelist> <contactemail> <use_registered_nameservers> <language>
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
 

PaulBBonline

Registered
Oct 22, 2009
2
0
51
Thanks for your reply I managed to work it out myself on Friday (package = plan, nice and obvious huh ?).

Thanks again

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