<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Right...<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I also tried <br><br>[mahmood@rocks7 ~]$ salloc --nodelist=compute-0-2 -n 1 -c 1 --mem=4G -p RUBY -A y4 <br>salloc: Granted job allocation 199<br>[mahmood@rocks7 ~]$ $ <br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I expected to see the compute-0-2 prompt. Is that normal?<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br><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 Sun, Dec 30, 2018 at 6:06 PM Ing. Gonzalo E. Arroyo <<a href="mailto:garroyo@ifimar-conicet.gob.ar">garroyo@ifimar-conicet.gob.ar</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">$ salloc ....  (Don't call the script in the same line)<div><div dir="auto"><br></div><div dir="auto">I had a typo... srun<br><br><div class="gmail_quote"><div dir="ltr">El dom., 30 de dic. de 2018 11:29, Ing. Gonzalo E. Arroyo <<a href="mailto:garroyo@ifimar-conicet.gob.ar" target="_blank">garroyo@ifimar-conicet.gob.ar</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">$ salloc ...<div><br></div><div>After you have the node you run</div><div><br></div><div>$ hostname</div><div><br></div><div>$ stun hostname</div><div><br></div><div>Check that difference then do the same with script</div><div><br><br><div class="gmail_quote"><div dir="ltr">El dom., 30 de dic. de 2018 07:17, Mahmood Naderan <<a href="mailto:mahmood.nt@gmail.com" target="_blank">mahmood.nt@gmail.com</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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">Hi<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I have read that salloc has some problem running bash scripts  while it is OK with binary files. The following script works fine from bash terminal, but salloc is unable to to that.<br><br><br>$ cat slurm.sh <br>#!/bin/bash<br>./script.sh files_android.txt report/android.txt<br>$ salloc -n 1 -c 1 --mem=4G -p RUBY -A y4 slurm.sh<br>salloc: Granted job allocation 195<br>salloc: error: Unable to exec command "slurm.sh"<br>salloc: Relinquishing job allocation 195<br>$ ls -l slurm.sh <br>-rwxrwxr-x 1 mahmood mahmood 73 Dec 30 13:24 slurm.sh<br>$ ls -l script.sh <br>-rwxrwxr-x 1 mahmood mahmood 251 Dec 28 00:31 script.sh<br><br><br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I have some other scripts and this is going to bother. Any idea? Is there any workaround for that?<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br clear="all"></div><div><div dir="ltr" class="gmail-m_3850422864695564336m_-7864201762952796093m_3419021800677668458gmail_signature"><div dir="ltr"><font face="tahoma,sans-serif">Regards,<br>Mahmood</font><br><br><br></div></div></div></div></div></div></div></div>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail-m_3850422864695564336m_-7864201762952796093gmail_signature"><div dir="ltr">Ing. Gonzalo Arroyo</div></div>
</blockquote></div></div></div>-- <br><div dir="ltr" class="gmail-m_3850422864695564336gmail_signature"><div dir="ltr">Ing. Gonzalo Arroyo</div></div>
</blockquote></div>