LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting variables exported from submission host with SLURM (https://www.linuxquestions.org/questions/linux-newbie-8/setting-variables-exported-from-submission-host-with-slurm-4175489850/)

lesley_raven 01-01-2014 09:48 PM

Setting variables exported from submission host with SLURM
 
Hi, Im a qsub/PBS user who is converting to SLURM and I need help running parallel/multithread jobs.
Specifically I need to know how to set variables. The following does not work...

PHP Code:

sbatch --export=="type=animal,VAR2=valueB" script.sh

sbatch
errorThis does not look like a batch script.  The first
sbatch
errorline must start with #! followed by the path to an interpreter.
sbatcherror: For instance#!/bin/sh 

I am trying to do this...
PHP Code:

qsub -v type=animalrun=4 script.sh 

I would appreciate any help.
Cheers, Lel

druuna 01-14-2014 02:58 AM

Thread is marked as being [SOLVED] and no solution is present.

@OP: Can you provide the solution so that others can also benefit from it?

Taken off the zero-reply list.

lesley_raven 01-14-2014 03:13 PM

The export command was fine... The error was that script.sh must begin with a shebang line.. oops :)

PHP Code:

#!/bin/bash 



All times are GMT -5. The time now is 04:25 AM.