Pass command line arguments via sbatch

后端 未结 6 1116
我寻月下人不归
我寻月下人不归 2021-01-31 02:44

Suppose that I have the following simple bash script which I want to submit to a batch server through SLURM:

#!/bin/bash

#SBATCH -o \"outFile\"$1\".txt\"
#SBATC         


        
6条回答
  •  北恋
    北恋 (楼主)
    2021-01-31 03:18

    Something like this works for me and Torque

    echo "$(pwd)/slurm.qsub 1" | qsub -S /bin/bash -N Slurm-TEST
    slurm.qsub:
    
    #!/bin/bash
    hostname > outFile${1}.txt 2>errFile${1}.txt
    exit 0
    

提交回复
热议问题