EnglishFrenchSpanish

OnWorks favicon

pcp-python - Online in the Cloud

Run pcp-python in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command pcp-python that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


pcp-python - run a python script using a preferred python variant

SYNOPSIS


pcp python [SCRIPT [ARG]...]

DESCRIPTION


pcp-python provides a way to run python scripts using a customisable python binary, rather
than embedding any particular version of python into each script.

This can be useful as it allows version-independent python code to be run anywhere. All
python modules shipped with PCP support versions 2.6 and later (in the python2 series),
and 3.3 and later (in the python3 release series).

Due to python monitoring and collecting scripts being relatively simple in PCP (not
requiring new modules, language features, etc), it has been possible to ensure they work
for all of the above python versions. Thus, it is common for PCP python scripts to use a
"shebang" line that invokes pcp-python as follows:

#!/usr/bin/pcp python

This allows the custom setting to be injected instead of a hard-coded python version,
while still allowing the user to override the python version as follows:

$ PCP_PYTHON_PROG=python3 /usr/bin/pcp python --version
Python 3.3.2
$ PCP_PYTHON_PROG=python2 /usr/bin/pcp python --version
Python 2.7.5

This is convenient for shipping identical scripts on multiple platforms, and for testing
different python versions with the one script (e.g. in the case where multiple versions of
python are installed, PCP_PYTHON_PROG can be set in the local environment to override the
global setting).

By default, the value of PCP_PYTHON_PROG from /etc/pcp.conf will be used. The default
value of this configuration parameter is set depending on some heuristics about the target
build platform. These heuristics favour the use of python3 in all recent releases of PCP,
for those platforms that support it.

PCP ENVIRONMENT


Environment variables with the prefix PCP_ are used to parameterize the file and directory
names used by PCP. On each installation, the file /etc/pcp.conf contains the local values
for these variables. The $PCP_CONF variable may be used to specify an alternative
configuration file, as described in pcp.conf(5).

Use pcp-python online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    strace
    strace
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • 2
    gMKVExtractGUI
    gMKVExtractGUI
    A GUI for mkvextract utility (part of
    MKVToolNix) which incorporates most (if
    not all) functionality of mkvextract and
    mkvinfo utilities. Written in C#NET 4.0,...
    Download gMKVExtractGUI
  • 3
    JasperReports Library
    JasperReports Library
    JasperReports Library is the
    world's most popular open source
    business intelligence and reporting
    engine. It is entirely written in Java
    and it is able to ...
    Download JasperReports Library
  • 4
    Frappe Books
    Frappe Books
    Frappe Books is a free and open source
    desktop book-keeping software that's
    simple and well-designed to be used by
    small businesses and freelancers. It'...
    Download Frappe Books
  • 5
    Numerical Python
    Numerical Python
    NEWS: NumPy 1.11.2 is the last release
    that will be made on sourceforge. Wheels
    for Windows, Mac, and Linux as well as
    archived source distributions can be fou...
    Download Numerical Python
  • 6
    CMU Sphinx
    CMU Sphinx
    CMUSphinx is a speaker-independent large
    vocabulary continuous speech recognizer
    released under BSD style license. It is
    also a collection of open source tools ...
    Download CMU Sphinx
  • More »

Linux commands

crm
crm
Use crm online using onworks.net
services. ...
Run crm
  • 4
    crmgr
    crmgr
    crmgr - administration utility for QDBM
    Curia ...
    Run crmgr
  • 5
    gappletviewer
    gappletviewer
    gappletviewer - Load and runs an applet
    ...
    Run gappletviewer
  • 6
    gaps
    gaps
    mummer - package for sequence alignment
    of multiple genomes ...
    Run gaps
  • s-processed="true">
    g15stats
    g15stats - A CPU/Memory/Swap usage
    meter for G15Daemon DESCRIPTION: The
    packages provides the following usage
    meter for LCD on some Logitech
    keyboards, usind g...
    Run g15stats
  • More »
  • Ad