Skip to content

/etc/profile.d/pbench provides no environment variable pointing to the pbench installation root #1794

@RobertKrawitz

Description

@RobertKrawitz

It is not presently possible for any software running with the agent to know where the root directory is other than by knowing that it's currently hard-coded or by trying to parse PATH or PYTHONPATH.

Activity

added this to the v0.71 milestone on Sep 15, 2020
self-assigned this
on Sep 15, 2020
portante

portante commented on Sep 15, 2020

@portante
Member

See also #1746

modified the milestones: v0.71, v0.72 on Nov 21, 2020
ndokos

ndokos commented on Jul 26, 2021

@ndokos
Member

In v0.69, this is $(getconf.py pbench_install_dir pbench-agent). In 0.71 and later it is $(pbench-config pbench_install_dir pbench-agent). Is that enough?

dbutenhof

dbutenhof commented on Jul 27, 2021

@dbutenhof
Member

Of course, ironically, pbench-config requires that the full install path be in PATH, and in PYTHONPATH, and that _PBENCH_AGENT_CONFIG is defined containing the full install path ... so if you already have the Pbench agent install path in your environment at least three times, you will be able to ask for it... ;-)

RobertKrawitz

RobertKrawitz commented on Jul 27, 2021

@RobertKrawitz
ContributorAuthor

In v0.69, this is $(getconf.py pbench_install_dir pbench-agent). In 0.71 and later it is $(pbench-config pbench_install_dir pbench-agent). Is that enough?

Yes.

webbnh

webbnh commented on Jul 27, 2021

@webbnh
Member

if you already have the Pbench agent install path in your environment at least three times, you will be able to ask for it... ;-)

But, when you install the Agent, it makes provision to place these automagically for you...so, as long as that's not defeated somehow, you just need to ask. 🙂

25 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    To Do

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      `/etc/profile.d/pbench` provides no environment variable pointing to the pbench installation root · Issue #1794 · distributed-system-analysis/pbench