Il 26/05/2022 11:48, Diego Zuccato ha scritto:
Still can't
export TMPDIR=...
from TaskProlog script. Surely missing something important. Maybe
TaskProlog is called as a subshell? In that case it can't alter caller's
env... But IIUC someone made it work, and that confuses me...
Seems I finally managed to understand TaskProlog script! It's more
involved than I thought. :(
The script is run (on the first allocated node, IIUC) in a subshell (so
a direct export can't work), and *its output* is processed in the job
shell. Please correct me if I'm wrong.
That's why the FAQ https://slurm.schedmd.com/faq.html uses lines like
echo "print ..."
Changing my TaskProlog.sh from
export TMPDIR=...
to
echo "export TMPDIR=..."
fixed it. Now I'm quite happier :)
--
Diego Zuccato
DIFA - Dip. di Fisica e Astronomia
Servizi Informatici
Alma Mater Studiorum - Università di Bologna
V.le Berti-Pichat 6/2 - 40127 Bologna - Italy
tel.: +39 051 20 95786