diff --git a/docs.it4i/software/numerical-languages/octave.md b/docs.it4i/software/numerical-languages/octave.md index 6b1097a51372acb5fe611fcdf3e6ad17cf464eac..8564bd030bd6a412fd20500fc7eda8cbdb2df623 100644 --- a/docs.it4i/software/numerical-languages/octave.md +++ b/docs.it4i/software/numerical-languages/octave.md @@ -34,7 +34,7 @@ To run Octave in batch mode, write an Octave script, then write a bash jobscript #!/bin/bash # change to local scratch directory -DIR=/scratch/project/PROJECT_ID/$PBS_JOBID +DIR=/scratch/project/PROJECT_ID/$SLURM_JOB_ID mkdir -p "$DIR" cd "$DIR" || exit @@ -48,7 +48,7 @@ ml Octave/6.3.0-intel-2020b-without-X11 octave -q --eval octcode > output.out # copy output file to home -cp output.out $PBS_O_WORKDIR/. +cp output.out $SLURM_SUBMIT_DIR/. #exit exit