Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pegasus-config(1) [debian man page]

PEGASUS-CONFIG(1)														 PEGASUS-CONFIG(1)

NAME
pegasus-config - The authority for where parts of the Pegasus system exists on the filesystem. pegasus-config can be used to find libraries such as the DAX generators. SYNOPSIS
pegasus-config [-h] [--help] [-V] [--version] [--noeoln] [--perl-dump] [--perl-hash] [--python-dump] [--sh-dump] [--bin] [--conf] [--java] [--perl] [--python] [--python-externals] [--schema] [--classpath] [--local-site] [--full-local] DESCRIPTION
pegasus-config is used to find locations of Pegasus system components. The tool is used internally in Pegasus and by users who need to find paths for DAX generator libraries and schemas. OPTIONS
-h, --help Prints help and exits. -V, --version Prints Pegasus version information --perl-dump Dumps all settings in perl format as separate variables. --perl-hash Dumps all settings in perl format as single perl hash. --python-dump Dumps all settings in python format. --sh-dump Dumps all settings in shell format. --bin Print the directory containing Pegasus binaries. --conf Print the directory containing configuration files. --java Print the directory containing the jars. --perl Print the directory to include into your PERL5LIB. --python Print the directory to include into your PYTHONLIB. --python-externals Print the directory to the external Python libraries. --schema Print the directory containing schemas. --classpath Builds a classpath containing the Pegasus jars. --noeoln Do not produce a end-of-line after output. This is useful when being called from non-shell backticks in scripts. However, order is important for this option: If you intend to use it, specify it first. --local-site [d] Create a site catalog entry for site "local". This is only an XML snippet without root element nor XML headers. The optional argument "d" points to the mount point to use. If not specified, defaults to the user's $HOME directory. --full-local [d] Create a complete site catalog with only site "local". The an XML snippet without root element nor XML headers. The optional argument "d" points to the mount point to use. If not specified, defaults to the user's $HOME directory. EXAMPLE
To set the PYTHONPATH variable in your shell for using the Python DAX API: export PYTHONPATH=`pegasus-config --python` To set the same path inside Python: config = subprocess.Popen("pegasus-config --python-dump", stdout=subprocess.PIPE, shell=True).communicate()[0] exec config To set the PERL5LIB variable in your shell for using the Perl DAX API: export PERL5LIB=`pegasus-config --perl` To set the same path inside Perl: eval `pegasus-config --perl-dump`; die("Unable to eval pegasus-config output: $@") if $@; will set variables a number of lexically local-scoped my variables with prefix "pegasus_" and expand Perl's search path for this script. Alternatively, you can fail early and collect all Pegasus-related variables into a single global %pegasus variable for convenience: BEGIN { eval `pegasus-config --perl-hash`; die("Unable to eval pegasus-config output: $@") if $@; } AUTHOR
Pegasus Team http://pegasus.isi.edu 05/24/2012 PEGASUS-CONFIG(1)

Check Out this Related Man Page

PEGASUS-SC-CLIENT(1)													      PEGASUS-SC-CLIENT(1)

NAME
pegasus-sc-client - generates a site catalog by querying sources. SYNOPSIS
pegasus-sc-client [-Dproperty=value...] [--source src] [-g|--grid grid] [-o|--vo vo] [-s|--sc scfile] [-p|--properties propfile] [-V|--version] [-v|--verbose] [-h|--help] DESCRIPTION
pegasus-sc-client generates site catalog by querying sources like OSGMM, MYSOG, etc. OPTIONS
-Dproperty=value The -D option allows an experienced user to override certain properties which influence the program execution, among them the default location of the user's properties file and the PEGASUS_HOME location. One may set several CLI properties by giving this option multiple times. The -D option(s) must be the first option on the command line. CLI properties take precedence over the file-based properties of the same key. --source src the source to query for site information. Valid sources are: OSGMM|MYOSG|VORS -g grid, --grid grid the grid for which to generate the site catalog information. -o vo, --vo vo The Virtual Organization (VO) to which the user belongs. The default VO is LIGO. The collector host should be set by default unless overridden by the property pegasus.catalog.site.osgmm.collector.host according to the following rules: o if VO is ligo then collector host queried is ligo-osgmm.renci.org o if VO is engage then collector host queried is engage-central.renci.org o for any other VO, engage-central.renci.org will be queried and in all the paths the name of the engage VO will be replaced with the name of the VO passed. e.g if user specifies the VO to be cigi, engage will be replaced by cigi in the directory paths. -s scfile, --sc scfile The path to the created site catalog file -p propfile, --properties propfile Generate a Pegasus properties file containing the SRM properties. The properties file is created only if --source is set to OSGMM. -v, --verbose Increases the verbosity of messages about what is going on. -V, --version Displays the current version of Pegasus. -h, --help Displays all the options to the pegasus-sc-client command. EXAMPLE
Runs pegasus-sc-client and generates the site catalog: $ pegasus-sc-client --source OSGMM --sc osg-sites.xml --vo LIGO --grid OSG AUTHORS
Prasanth Thomas Pegasus Team http://pegasus.isi.edu 05/24/2012 PEGASUS-SC-CLIENT(1)
Man Page