From the sbatch man page:
-wrap=<command string>
Sbatch will wrap the specified command string in a simple "sh" shell script, and submit that script to the slurm controller. When --wrap is used, a script name and arguments may not be specified on the command line; instead the sbatch-generated wrapper script is used.



Quoting Paul Edmon <[email protected]>:

For reference we are coming from a LSF environment where our users are used to:

bsub -q test_queue my_program

Where my_program could be anything from simple bash commands to an actual program to run.

-Paul Edmon-

On 12/13/2013 04:59 PM, Silva, Luis wrote:
sbatch as a one liner on the command line
Hey,

I just had a quick questions. Does anyone know if it's possible to run sbatch on the command line without calling a shell script. Some of our users came from running bsub and they are kind of accustom to this.

Something like:
sbatch -n 4 -t 5 -p test_queue --mem=2048 <My_Program>

I know you can do it with srun but we have a tcp timeout set for that because we typically use srun for interactive jobs.

Any guidance with be awesome.

Thanks,
_________________________
Luis Silva
Harvard University Research Computing




Reply via email to