<div dir="ltr">Hi Marcus,<div><br></div><div>the essence of the code looks like</div><div><br></div><div>in job_submitl.lua script, it execute an external script</div><div><br></div><div>os.execute("/etc/slutm/test.sh".." "..job_desc.partition)</div><div><br></div><div>and the external test.sh executes the following command to get the partition summary for further processing.</div><div><br></div><div>sinfo -h -p $1 -s<br><div><br></div></div><div>But, this sinfo command returned no result.</div><div><br></div><div>Regards,</div><div>Chansup</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 3, 2020 at 1:28 AM Marcus Wagner <<a href="mailto:wagner@itc.rwth-aachen.de">wagner@itc.rwth-aachen.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Chansup,<br>
<br>
could you provde a code snippet?<br>
<br>
Best<br>
Marcus<br>
<br>
Am 02.04.2020 um 19:43 schrieb CB:<br>
> Hi,<br>
> <br>
> I'm running Slurm 19.05.<br>
> <br>
> I'm trying to execute some Slurm commands from the Lua job_submit script <br>
> for a certain condition.<br>
> But, I found that it's not executed and return nothing.<br>
> For example, I tried to execute a "sinfo" command from an external shell <br>
> script but it didn't work.<br>
> <br>
> Does Slurm prohibit to execute any Slurm command from the Lua job_submit <br>
> command?<br>
> <br>
> Thanks,<br>
> - Chansup<br>
<br>
<br>
</blockquote></div>