[slurm-users] Need to execute a binary with arguments on a node

William Brown william at signalbox.org.uk
Wed Dec 18 18:40:25 UTC 2019


Sometimes the way is to make the shell the binary, e.g. bash -c 'ls -lsh'



On Wed, 18 Dec 2019, 18:25 Dean Schulze, <dean.w.schulze at gmail.com> wrote:

> This is a rookie question.  I can use the srun command to execute a simple
> command like "ls" or "hostname" on a node.   But I haven't found a way to
> add arguments like "ls -lart".
>
> What I need to do is execute a binary that takes arguments (like "a.out
> arg1 arg2 arg3) that exists on the node.
>
> Is srun the right way to do this or do I need a script or something else?
>
> Thanks.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20191218/cd2edb1e/attachment.htm>


More information about the slurm-users mailing list