Dear All,
Is there any way to assign variable scrpath to bash environment variable $TMPDIR? When I run a calculation using PBS qsub the temporary variable $TMPDIR with a random name is created on the scratch. My home directory has a limited size so I would like to place all large files such as EVALFV.OUT and EVALSV.OUT in this temporary directory.
Thank you
Roger
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
could you just use bash script to generate elk.in ? Something like you submit this
-->
!# slurm .... %everything of the jobscript
temppath=echo $TMPDIR
cat >> elk.in << EOF
scrpath
$temppath
EOF
mpirun -n XXX elk
Please note that this shows only the essential stuff and further more it assumes that a proper elk.in exists with all input requiered for the computation.
best regards
Michael
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear All,
Is there any way to assign variable scrpath to bash environment variable $TMPDIR? When I run a calculation using PBS qsub the temporary variable $TMPDIR with a random name is created on the scratch. My home directory has a limited size so I would like to place all large files such as EVALFV.OUT and EVALSV.OUT in this temporary directory.
Thank you
Roger
Dear Roger,
could you just use bash script to generate elk.in ? Something like you submit this
-->
!# slurm .... %everything of the jobscript
temppath=
echo $TMPDIR
cat >> elk.in << EOF
scrpath
$temppath
EOF
mpirun -n XXX elk
Please note that this shows only the essential stuff and further more it assumes that a proper elk.in exists with all input requiered for the computation.
best regards
Michael
I have a similar setup of slurm and for me the following setup works:
In elk.in
scrpath
'./scratch/'
and in the script-file
ln -sf $TMPDIR scratch
Good luck!
/Lars
Dear mfechner & Lars,
Many thanks for the prompt reply. Right now, it works :)
Best
Roger
Last edit: Roger 2017-03-29