List of WHM /scripts and /scripts2

hamerr

Member
Sep 18, 2007
7
0
51
Excuse me but how can I get a list of the scripts in WHM 11.2.0?Can someone help me with that? Thanks in advance.
 
Last edited:

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
79
458
cPanel Access Level
Root Administrator
Most of those are not references to physical scripts (such as in the /scripts directory) but calls into an internal binary.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
13
313
Houston, TX
cPanel Access Level
Root Administrator
I know that... But I still need them.And I need them so bad....
I would recommend using our various APIs where possible. If you are adding new functionality to cPanel, you would likely use API2. If you are building a script to manipulate cPanel/WHM, you would likely use the XML-API and the XML-API with embedded API2 to fill in the gaps with that API.

You can find documentation for all of this at:

http://www.cPanel.net/plugins/devel
 

hamerr

Member
Sep 18, 2007
7
0
51
I would recommend using our various APIs where possible. If you are adding new functionality to cPanel, you would likely use API2. If you are building a script to manipulate cPanel/WHM, you would likely use the XML-API and the XML-API with embedded API2 to fill in the gaps with that API.

You can find documentation for all of this at:

http://www.cPanel.net/plugins/devel
cd scritps
ls
----------
cd scripts2
ls
----------

is it that difficult ???
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
79
458
cPanel Access Level
Root Administrator
If you really, really want that information it is available on your own server. Any custom solutions created using such means is not guaranteed to work in perpetuity, please using the various script APIs instead, as David pointed out earlier.
 

Gavster

Active Member
Apr 3, 2002
26
0
301
speakin of api . . .

Speaking of API2 - can it be extended to:

- List detailed info about a user's account? For instance, list addon domains, list parked domains, number of x used out of quota of y? (for example, 2/5 mysql dbs)

The current API seems somewhat lacking in this respect - for example, from what I saw with API2 you can add an addon domain with it - but you cannot list a users addon domains, nor remove an addon domain.

Any plans to include this level of functionality?