Re: [slurm-users] RES: multiple srun commands in the same SLURM script

2023-11-01 Thread Bjørn-Helge Mevik
Paulo Jose Braga Estrela writes: > Hi, > > I think that you have a syntax error in your bash script. The "&" > means that you want to send a process to background not that you want > to run many commands in parallel. To run commands in a serial fashion > you should use cmd && cmd2, then the cmd2

[slurm-users] RES: multiple srun commands in the same SLURM script

2023-10-31 Thread Paulo Jose Braga Estrela
Hi, I think that you have a syntax error in your bash script. The "&" means that you want to send a process to background not that you want to run many commands in parallel. To run commands in a serial fashion you should use cmd && cmd2, then the cmd2 will only be executed if the command 1