<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,<br>
<br>
How to add an epilog to the job.log I got from running "sbatch -o job.log job.sh" ?<br>
I would like to run "scontrol show job $SLURM_JOB_ID" in the epilog (track job info).<br>
<br>
I tried to play with Epilog and TaskEpilog in slurm.conf: but seems not to work.<br>
Are these the correct ones ? Or did I misunderstood something along the way ?<br>
<br>
Franck<br>
<br>
Note: I got what I expected with srun and SrunEpilog. Would like to get the same with sbatch.<br>
<br>
>> more sbatch_epilog.sh <br>
#!/bin/bash<br>
#<br>
# Slurm epilog<br>
<br>
echo ""<br>
echo "==============SLURM===EPILOG=============="<br>
SLURM_JOB_INFO="$(/path/to/scontrol show job "$SLURM_JOB_ID")"<br>
echo "print scontrol show job $SLURM_JOB_ID"<br>
echo "print $SLURM_JOB_INFO"<br>
echo "=========================================="<br>
<br>
<br>
</div>
</body>
</html>