[slurm-users] salloc with bash scripts problem
Mahmood Naderan
mahmood.nt at gmail.com
Sun Dec 30 08:16:34 MST 2018
Right...
I also tried
[mahmood at rocks7 ~]$ salloc --nodelist=compute-0-2 -n 1 -c 1 --mem=4G -p
RUBY -A y4
salloc: Granted job allocation 199
[mahmood at rocks7 ~]$ $
I expected to see the compute-0-2 prompt. Is that normal?
Regards,
Mahmood
On Sun, Dec 30, 2018 at 6:06 PM Ing. Gonzalo E. Arroyo <
garroyo at ifimar-conicet.gob.ar> wrote:
> $ salloc .... (Don't call the script in the same line)
>
> I had a typo... srun
>
> El dom., 30 de dic. de 2018 11:29, Ing. Gonzalo E. Arroyo <
> garroyo at ifimar-conicet.gob.ar> escribió:
>
>> $ salloc ...
>>
>> After you have the node you run
>>
>> $ hostname
>>
>> $ stun hostname
>>
>> Check that difference then do the same with script
>>
>>
>> El dom., 30 de dic. de 2018 07:17, Mahmood Naderan <mahmood.nt at gmail.com>
>> escribió:
>>
>>> Hi
>>> 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.
>>>
>>>
>>> $ cat slurm.sh
>>> #!/bin/bash
>>> ./script.sh files_android.txt report/android.txt
>>> $ salloc -n 1 -c 1 --mem=4G -p RUBY -A y4 slurm.sh
>>> salloc: Granted job allocation 195
>>> salloc: error: Unable to exec command "slurm.sh"
>>> salloc: Relinquishing job allocation 195
>>> $ ls -l slurm.sh
>>> -rwxrwxr-x 1 mahmood mahmood 73 Dec 30 13:24 slurm.sh
>>> $ ls -l script.sh
>>> -rwxrwxr-x 1 mahmood mahmood 251 Dec 28 00:31 script.sh
>>>
>>>
>>>
>>> I have some other scripts and this is going to bother. Any idea? Is
>>> there any workaround for that?
>>>
>>>
>>> Regards,
>>> Mahmood
>>>
>>>
>>> --
>> Ing. Gonzalo Arroyo
>>
> --
> Ing. Gonzalo Arroyo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20181230/df9ae336/attachment.html>
More information about the slurm-users
mailing list