Skip to content
Snippets Groups Projects
Commit 2f571181 authored by Jan Siwiec's avatar Jan Siwiec
Browse files

Update octave.md

parent dddaf962
Branches
No related tags found
No related merge requests found
Pipeline #39682 failed
...@@ -34,7 +34,7 @@ To run Octave in batch mode, write an Octave script, then write a bash jobscript ...@@ -34,7 +34,7 @@ To run Octave in batch mode, write an Octave script, then write a bash jobscript
#!/bin/bash #!/bin/bash
# change to local scratch directory # change to local scratch directory
DIR=/scratch/project/PROJECT_ID/$PBS_JOBID DIR=/scratch/project/PROJECT_ID/$SLURM_JOB_ID
mkdir -p "$DIR" mkdir -p "$DIR"
cd "$DIR" || exit cd "$DIR" || exit
...@@ -48,7 +48,7 @@ ml Octave/6.3.0-intel-2020b-without-X11 ...@@ -48,7 +48,7 @@ ml Octave/6.3.0-intel-2020b-without-X11
octave -q --eval octcode > output.out octave -q --eval octcode > output.out
# copy output file to home # copy output file to home
cp output.out $PBS_O_WORKDIR/. cp output.out $SLURM_SUBMIT_DIR/.
#exit #exit
exit exit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment