<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">So, I get<br><br>[mahmood@rocks7 ~]$ salloc --spankx11 srun ./run_qemu.sh <br>salloc: Granted job allocation 281<br>srun: error: Bad value for --x11: (null)<br>srun: error: Invalid argument ((null)) for environment variable: SLURM_SPANK__SLURM_SPANK_OPTION_spankx11_spankx11<br>salloc: Relinquishing job allocation 281<br><br><br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">It seems that there is problem with spankx11.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">However, the "salloc srn hostname" is working as you said and it is fine.<br><br>[mahmood@rocks7 ~]$ salloc srun hostname<br>salloc: Granted job allocation 282<br>compute-0-2.local<br>salloc: Relinquishing job allocation 282<br><br><br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br clear="all"></div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><font face="tahoma,sans-serif">Regards,<br>Mahmood</font><br><br><br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 3, 2019 at 12:25 AM Ryan Novosielski <<a href="mailto:novosirj@rutgers.edu">novosirj@rutgers.edu</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">> On Jan 2, 2019, at 3:49 PM, Mark Hahn <<a href="mailto:hahn@mcmaster.ca" target="_blank">hahn@mcmaster.ca</a>> wrote:<br>
> <br>
>> [mahmood@rocks7 ~]$ salloc -n1 hostname<br>
>> salloc: Granted job allocation 278<br>
>> <a href="http://rocks7.jupiterclusterscu.com" rel="noreferrer" target="_blank">rocks7.jupiterclusterscu.com</a><br>
>> salloc: Relinquishing job allocation 278<br>
>> salloc: Job allocation 278 has been revoked.<br>
>> [mahmood@rocks7 ~]$<br>
>> <br>
>> As you can see whenever I run salloc, I see the rocks7 prompt which is the<br>
>> login node.<br>
> <br>
> this is precisely as expected. salloc allocates; srun runs.<br>
> <br>
> to get a compute node do this instead:<br>
> salloc srun hostname<br>
> <br>
> if you actually want to srun an interactive shell each time,<br>
> why are you not using SallocDefaultCommand as others have suggested?<br>
> <br>
> you earlier mentioned wanting to run an X-requiring script. why not just:<br>
> salloc --x11 srun ./whateveryourscriptwas<br>
<br>
For that matter, however, what’s the advantage of “salloc --x11 srun” vs. just "srun --x11”?<br>
<br>
--<br>
____<br>
|| \\UTGERS, |---------------------------*O*---------------------------<br>
||_// the State | Ryan Novosielski - <a href="mailto:novosirj@rutgers.edu" target="_blank">novosirj@rutgers.edu</a><br>
|| \\ University | Sr. Technologist - 973/972.0922 (2x0922) ~*~ RBHS Campus<br>
|| \\ of NJ | Office of Advanced Research Computing - MSB C630, Newark<br>
`'<br>
<br>
</blockquote></div></div></div></div>