Guide to the LiveAPI System - The exec() Method

Description

The exec() method executes a cPanel tag.

Important:

We strongly recommend that you use an API method ( api1() api2() , or uapi() ) or wrapper method instead of this method.

Example  


LiveAPI PHP Class

1
2
// Execute the feature tag.
$cpanel->exec(feature,1);




LiveAPI Perl Module

1
2
# Execute the feature tag.
$cpliveapi->exec(feature,1);



Parameters

 Parameter 

Type

Description

Possible values

 Example 

tag

string

The cPanel tag.

A valid cPanel tag.

feature

skip_return

 boolean 

Whether to return output.

 This parameter defaults to 0. 

  • 1 — Do not return output. 
  • 0 — Return output.

1

 

Returns

  • If the skip_return value is 0, the function returns a hash reference of the cPanel tag's output.
  • If the skip_return value is 1, the function does not return output.

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

The cPanel Interface

For  cPanel  &  WHM  version  58 Overview The cPanel interface is...

User Preferences

For cPanel & WHM version 58 Overview This document outlines how to access your cPanel...

Manage External Authentications

For cPanel & WHM version 58 Overview Manage credentials Additional documentation...

What is cPanelID?

In This Article:  Overview ServicesHow to get a cPanelID cPanelID External...

Guide to cPanel Interface Customization - cPanel Style Development

Introduction You can develop custom styles that modify the appearance of the cPanel interface....