[Development Guides Home](/guides) >> [Guide to the LiveAPI System](/guides/guide-to-the-liveapi-system) >> [LiveAPI Methods](/guides/guide-to-the-liveapi-system/guide-to-the-liveapi-system-liveapi-methods)

# Guide to the LiveAPI System - The exec() Method

The `exec()` method executes a cPanel tag.

div
Important:

We **strongly** recommend that you use an API method ([`api1()`](https://documentation.cpanel.net/display/DD/Guide+to+cPanel+API+1), [`api2()`](https://documentation.cpanel.net/display/DD/Guide+to+cPanel+API+2), or [`uapi()`](/cpanel/introduction)) or wrapper method instead of this method.

## Example

### LiveAPI PHP Class


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

### LiveAPI Perl Module


```perl
# 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.