Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHPC provide option to just get command provided in module.lua #667

Open
Amjadhpc opened this issue Feb 2, 2024 · 1 comment
Open

SHPC provide option to just get command provided in module.lua #667

Amjadhpc opened this issue Feb 2, 2024 · 1 comment

Comments

@Amjadhpc
Copy link

Amjadhpc commented Feb 2, 2024

Hello
I am newbie to shpc and still learning
Does shpc has any flag that will inspect the module.lua file generated and just get the command section? or there is a flag in config section that can move the commands provided commands to a location so that when user load module, that binary is in the PATH.

E.g . Module.lua for couchdb 3.1. consists

couchdb:
singularity exec -B /99-shpc.sh:/.singularity.d/env/99-shpc.sh /opt/couchdb/bin/couchdb "$@"

  • couchdb.cmd:
    singularity exec -B /99-shpc.sh:/.singularity.d/env/99-shpc.sh /opt/couchdb/bin/couchdb.cmd "$@"
  • couchjs:
    singularity exec -B /99-shpc.sh:/.singularity.d/env/99-shpc.sh /opt/couchdb/bin/couchjs "$@"
  • remsh:
    singularity exec -B /99-shpc.sh:/.singularity.d/env/99-shpc.sh /opt/couchdb/bin/remsh "$@"

Can this binaires be added as files to path where couchdb module.lua is located ?

@vsoch
Copy link
Member

vsoch commented Feb 2, 2024

It generates a standard module for your software of interest, so you can use the standard module info or similar to inspect the files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants