1PCP.ENV(5)                    File Formats Manual                   PCP.ENV(5)
2
3
4

NAME

6       pcp.env - script to set Performance Co-Pilot run-time environment vari‐
7       ables
8

SYNOPSIS

10       /etc/pcp.env
11

DESCRIPTION

13       The pcp.env script is sourced by assorted  Performance  Co-Pilot  (PCP)
14       scripts  and  utilities  to  define the PCP operating environment vari‐
15       ables.  The conjugate for executable programs using the  PCP  libraries
16       is the __pmGetConfig(3) function.
17
18       Typical usage of pcp.env in a script is as follows :
19
20                #! /bin/sh
21
22                # source the PCP environment variables
23                . /etc/pcp.env
24                rest of script ...
25
26
27       The  full syntax and semantics of the pcp.conf file and the __pmGetCon‐
28       fig function are described in their respective reference pages.
29
30       If the file $HOME/.pcp/pcp.conf exists  then  this  will  be  processed
31       after  the  system-wide  pcp.conf  file.   This provides a mechanism to
32       selectively modify or augment the environment settings for PCP scripts,
33       which maybe useful if the scripts are run with sudo(1) which cleans the
34       environment of important settings that are required to ensure the  cor‐
35       rect execution of the PCP scripts, e.g.  $PATH or $PERL5LIB.
36

ENVIRONMENT

38       The  PCP_CONF environment variable specifies an alternative path to the
39       pcp.conf file.
40

SEE ALSO

42       PCPIntro(1),  sudo(1),  PCPIntro(3),  PMAPI(3),  __pmGetConfig(3)   and
43       pcp.conf(5).
44
45
46
47Performance Co-Pilot                  PCP                           PCP.ENV(5)
Impressum