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
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