<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
It could be because the epilog script doesn't have a PATH set by default for security, so maybe it isn't finding the commands echo or chmod</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<a href="https://slurm.schedmd.com/prolog_epilog.html" id="LPNoLPOWALinkPreview">https://slurm.schedmd.com/prolog_epilog.html</a><br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Do you have /var/slurm/etc/epilog-test on your nodes?</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: "Courier New", monospace; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Jeff</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> slurm-users <slurm-users-bounces@lists.schedmd.com> on behalf of Purvesh Parmar <purveshp0507@gmail.com><br>
<b>Sent:</b> Monday, July 18, 2022 5:29 AM<br>
<b>To:</b> Slurm User Community List <slurm-users@lists.schedmd.com><br>
<b>Subject:</b> Re: [slurm-users] Epilog script does not execute</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi,<br>
<br>
I have written a shell script with the name epilog-test. I have mentioned in the slurm.conf file :<br>
Epilog=/var/slurm/etc/epilog-test<br>
The same slurm.conf file has been copied on all the nodes. <br>
<br>
My epilog-test is<br>
<br>
#! /bin/bash<br>
echo "epilog test" > /tmp/testfile<br>
<br>
Chmod +x epilog-test<br>
<br>
I have restarted slurmctld on master and slurmd on the nodes. Then I have tested jobs, but nothing executes after the job is over.<br>
<br>
Please help<br>
<br>
Regards,<br>
Purvesh<br>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Sat, 16 Jul 2022 at 12:37, Purvesh Parmar <<a href="mailto:purveshp0507@gmail.com">purveshp0507@gmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
Hi,
<div><br>
</div>
<div>I have written a shell script with name epilog-test. I have mentioned in the slurm.conf file :</div>
<div>Epilog=/var/slurm/etc/epilog-test</div>
<div>The same slurm.conf file has been copied on all the nodes. </div>
<div><br>
</div>
<div>My epilog-test is</div>
<div><br>
</div>
<div>#! /bin/bash</div>
<div>echo "epilog test" > /tmp/testfile</div>
<div><br>
</div>
<div>Chmod +x epilog-test</div>
<div><br>
</div>
<div>I have restarted slurmctld on master and slurmd on the nodes. Then I have tested jobs, but nothing executes after job is over.</div>
<div><br>
</div>
<div>Please help</div>
<div><br>
</div>
<div>Regards,</div>
<div>Purvesh</div>
</blockquote>
</div>
</div>
</body>
</html>