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

Question: How are template files interpretted? #291

Open
lpiep opened this issue Jan 25, 2023 · 1 comment
Open

Question: How are template files interpretted? #291

lpiep opened this issue Jan 25, 2023 · 1 comment

Comments

@lpiep
Copy link

lpiep commented Jan 25, 2023

I've looked around in the docs and haven't been able to figure out how this works.

I'm working with the SGE template which appears to have three "levels" of code/text to be parsed by brew:

## text like this: comments
#$ -text like this: arguments to qsub
bare text like this: shell commands

When and where do the #$ lines get passed on to qsub (if that is indeed what happens)? Thanks for any help wrapping my mind around this!

@HenrikBengtsson
Copy link

HenrikBengtsson commented Jan 27, 2023

batchtools reads your template as plain text, runs it through brew to generate the final job script, which is then sent to the scheduler. Nowhere along the way does batchtools parse the template - from its point of view it's just plain text that can contain anything. Parsing and interpretation of the final script is done by the scheduler.

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