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

Provide an option to use /bin/bash -l in job scripts #3538

Open
giordano opened this issue Jul 22, 2024 · 1 comment
Open

Provide an option to use /bin/bash -l in job scripts #3538

giordano opened this issue Jul 22, 2024 · 1 comment

Comments

@giordano
Copy link
Contributor

giordano commented Jul 22, 2024

Is your feature request related to a problem? Please describe.

In some clusters you may have to load the shell init script to run some commands (e.g. if module is a shell function, rather than an executable in PATH), or have some applications in PATH, etc.

As far as I understand, at the moment Parsl hardcodes

#!/bin/bash

as shebang line for most providers with no way to add the -l option, e.g.

template_string = """#!/bin/bash

Describe the solution you'd like

Provide an option to enable login shell. As a prior art in this area, ReFrame uses an environment variable called RFM_USE_LOGIN_SHELL and a configuration parameter called use_login_shell for this purpose.

Describe alternatives you've considered

N/A

Additional context

N/A

@giordano
Copy link
Contributor Author

Is there any interest in this feature? I may be able to implement it myself with some directions (e.g., where such an option should be set?), but I won't waste my time if it isn't going to be accepted.

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

No branches or pull requests

1 participant