Hi Marcus,

the essence of the code looks like

in job_submitl.lua script, it execute an external script

os.execute("/etc/slutm/test.sh".." "..job_desc.partition)

and the external test.sh executes the following command to get the
partition summary for further processing.

sinfo -h -p $1 -s

But, this sinfo command returned no result.

Regards,
Chansup

On Fri, Apr 3, 2020 at 1:28 AM Marcus Wagner <wag...@itc.rwth-aachen.de>
wrote:

> Hi Chansup,
>
> could you provde a code snippet?
>
> Best
> Marcus
>
> Am 02.04.2020 um 19:43 schrieb CB:
> > Hi,
> >
> > I'm running Slurm 19.05.
> >
> > I'm trying to execute some Slurm commands from the Lua job_submit script
> > for a certain condition.
> > But, I found that it's not executed and return nothing.
> > For example, I tried to execute a "sinfo" command from an external shell
> > script but it didn't work.
> >
> > Does Slurm prohibit to execute any Slurm command from the Lua job_submit
> > command?
> >
> > Thanks,
> > - Chansup
>
>
>

Reply via email to