From e114b73b35ff7a28a9acbc505eb5d459d3e38dbb Mon Sep 17 00:00:00 2001 From: niksirbi Date: Tue, 14 Nov 2023 15:46:13 +0000 Subject: [PATCH] move warning about execute permission earlier --- docs/source/data_analysis/HPC-module-SLEAP.md | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/docs/source/data_analysis/HPC-module-SLEAP.md b/docs/source/data_analysis/HPC-module-SLEAP.md index 2a2b345..40e1899 100644 --- a/docs/source/data_analysis/HPC-module-SLEAP.md +++ b/docs/source/data_analysis/HPC-module-SLEAP.md @@ -253,25 +253,31 @@ to the model configuration and the project file. - The `./train-script.sh` line runs the training job (executes the contained commands). ::: -Now you can submit the batch script via running the following command -(in the same directory as the script): -```{code-block} console -$ sbatch train_slurm.sh -Submitted batch job 3445652 -``` :::{warning} -If you are getting a permission error, make the script files executable -by running in the terminal: +Before submitting the job, ensure that you have permissions to execute +both the batch script and the training script generated by SLEAP. +You can make these files executable by running in the terminal: ```{code-block} console $ chmod +x train-script.sh $ chmod +x train_slurm.sh ``` -If the scripts are not in the same folder, you will need to specify the full path: -`chmod +x /path/to/script.sh` +If the scripts are not in your working directory, you will need to specify their full paths: + +```{code-block} console +$ chmod +x /path/to/train-script.sh +$ chmod +x /path/to/train_slurm.sh +``` ::: +Now you can submit the batch script via running the following command +(in the same directory as the script): +```{code-block} console +$ sbatch train_slurm.sh +Submitted batch job 3445652 +``` + You may monitor the progress of the job in various ways: ::::{tab-set}