Hello.
I'm looking to run a PERL script every time an account is created in WHM, hopefully with the account info passed to the script.
Is this possible?
Hello.
I'm looking to run a PERL script every time an account is created in WHM, hopefully with the account info passed to the script.
Is this possible?
Yes, in fact all you need to do is create /scripts/postwwwacct as a shell script. That script is always executed after the creation of any account. You can create /scripts/prewwwacct if you want it to execute before an account is created.
For more information about how the account information is passed to this script, please visit:
http://www.cpanel.net/support/docs/hooks.htm
You can accomplish this by placing a script at /scripts/postwwwacct or /scripts/postwwwacctuser. Information on how to process the arguments for these scripts is documented at the following URL:
http://www.cpanel.net/support/docs/hooks.htm
Stephen Bee
Quality Assurance
thank you both.
Is there any script will run every time upgrade/downgrade packages ?
I try to find in
http://www.cpanel.net/support/docs/hooks.htm
but not found any clue.
Thanks