Differences
This shows you the differences between two versions of the page.
habrok:advanced_job_management:passing_parameters_to_a_job_script [2020/12/22 10:08] – external edit 127.0.0.1 | habrok:advanced_job_management:passing_parameters_to_a_job_script [2023/03/22 13:22] (current) – fokke | ||
---|---|---|---|
Line 28: | Line 28: | ||
#SBATCH --job-name=python_passing_parameters | #SBATCH --job-name=python_passing_parameters | ||
#SBATCH --mem=500 | #SBATCH --mem=500 | ||
- | module load Python/3.4.2-goolfc-2.7.11 | + | module purge |
+ | module load Python/3.10.4-GCCcore-11.3.0 | ||
python python_passing_parameters.py $* | python python_passing_parameters.py $* | ||
</ | </ | ||
You can now submit the job with “sbatch jobscript.sh 1 2 a b”, and your input parameters (1 2 a b) will be forwarded to the Python script. | You can now submit the job with “sbatch jobscript.sh 1 2 a b”, and your input parameters (1 2 a b) will be forwarded to the Python script. | ||