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

[Usage] How to pass an inline argument for singularity shell call? #6505

Closed
physicistsam opened this issue Mar 13, 2024 · 1 comment
Closed

Comments

@physicistsam
Copy link

Version of Singularity: singularity-ce version 3.11.3

Its a question, rather than an issue.
Is there any way to pass an inline argument for singularity shell call

#! /bin/bash
# following arguments are the arguments for the script
filename=$1 
ptg=$2 
data_block=$3
locno=$4


# Path to your Singularity container
SINGULARITY_CONTAINER=/Path-to-your /Singularity /container.sif
# Command to run an interactive shell session with Singularity
singularity shell $SINGULARITY_CONTAINER << 'EOF'
  # some other stuffs
  # Run the script
  ./my_script.sh $filename $ptg $data_block $locno
  
EOF

This does not pass the arguments <filename, ptg, data_block, locno>.

Copy link

New issues are no longer accepted in this repository. If singularity --version says singularity-ce, submit instead to https://github.com/sylabs/singularity, otherwise submit to https://github.com/apptainer/apptainer.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant