---
name: "pcp.env"
section: "4"
platform: "linux"
package: "pcp"
version: "3.3.3-squeeze3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/pcp.env/4"
---

# pcp.env(4)

script to set Performance Co-Pilot run-time environment variables

## NAME

**pcp.env** - script to set Performance Co-Pilot run-time environment variables

## SYNOPSIS

*/etc/pcp.env*

## DESCRIPTION

The *pcp.env* script is sourced by assorted Performance Co-Pilot (PCP) scripts and utilities to define the PCP operating environment variables. The conjugate for executable programs using the PCP libraries is the *\_\_pmGetConfig*(3) function.

Typical usage of *pcp.env* in a script is as follows :

-

    \#! /bin/sh

    \# source the PCP environment variables\
     . /etc/pcp.env\
     rest of script ...

The full syntax and semantics of the *pcp.conf* file and the *\_\_pmGetConfig* function are described in their respective reference pages.

## ENVIRONMENT

The **PCP\_CONF** environment variable specifies an alternative path to the *pcp.conf* file.

## SEE ALSO

[**PCPIntro**(1)](/PCPIntro/1.md), [**PCPIntro**(3)](/PCPIntro/3.md), [**PMAPI**(3)](/PMAPI/3.md), **\_\_pmGetConfig**(3) and [**pcp.conf**(4)](/pcp.conf/4.md).
