singularity-hpc icon indicating copy to clipboard operation
singularity-hpc copied to clipboard

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

Open Amjadhpc opened this issue 1 year ago • 1 comments

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 <wrapperDir>/99-shpc.sh:/.singularity.d/env/99-shpc.sh /opt/couchdb/bin/couchdb "$@"

  • couchdb.cmd: singularity exec -B <wrapperDir>/99-shpc.sh:/.singularity.d/env/99-shpc.sh /opt/couchdb/bin/couchdb.cmd "$@"
  • couchjs: singularity exec -B <wrapperDir>/99-shpc.sh:/.singularity.d/env/99-shpc.sh /opt/couchdb/bin/couchjs "$@"
  • remsh: singularity exec -B <wrapperDir>/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 ?

Amjadhpc avatar Feb 02 '24 16:02 Amjadhpc

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

vsoch avatar Feb 02 '24 17:02 vsoch