<div dir="ltr">We put this exact function in epilogctld</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 9, 2018 at 4:02 AM, Franck HOUSSEN <span dir="ltr"><<a href="mailto:franck.houssen@eolen.com" target="_blank">franck.houssen@eolen.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<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=<wbr>============="<br>
SLURM_JOB_INFO="$(/path/to/<wbr>scontrol show job "$SLURM_JOB_ID")"<br>
echo "print scontrol show job $SLURM_JOB_ID"<br>
echo "print $SLURM_JOB_INFO"<br>
echo "=============================<wbr>============="<br>
<br>
<br>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Hadrian Djohari<br>Manager of Research Computing Services, [U]Tech<br>Case Western Reserve University<br>(W): 216-368-0395<br>(M): 216-798-7490<div></div><div></div><div></div></div></div></div></div></div></div></div>
</div>