Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
habrok:job_management:running_jobs [2023/03/22 13:06] – [Submitting jobs] fokke | habrok:job_management:running_jobs [2023/03/23 15:57] (current) – [Job environment] admin | ||
---|---|---|---|
Line 19: | Line 19: | ||
===== Job environment ===== | ===== Job environment ===== | ||
- | Jobs will always start in the same directory as from which they were submitted. | + | Jobs will always start in the same directory as from which they were submitted. |
+ | If you do really want to change the latter behavior (which we really do not recommend, as it breaks the reproducibility of your scripts), you can add the following to your job script: | ||
< | < | ||
- | #SBATCH --export=var1, | + | #SBATCH --export=ALL |
</ | </ | ||
- | It takes a list of names of environment variables that should be transferred to the job. Special values that can be given are ALL (default) and NONE. By using the latter, the job will start with a clean/empty environment. | ||