On Thu, 18 Nov 2021, mnieuw--- via Cin wrote:
CPUS=`nproc` Is that correct?
Yes, please change it to CPUS=nproc
The single quotes are not needed, those are to prevent shell expansion within the quotes.
Attention, it is absolutely not the same, whether in backquotes or unquoted. Backquotes mean that the shell tries to execute the quoted contents as a command and substitute the standard output of that command as the result. Please compare and see the difference: mri.sge:~>nproc 2 mri.sge:~>CPUS=nproc mri.sge:~>echo $CPUS nproc mri.sge:~>CPUS=`nproc` mri.sge:~>echo $CPUS 2 (there are 2 cores on the test computer, mri.sge:~> being the shell prompt) _______________________________________________________________________________ Georgy Salnikov NMR Group Novosibirsk Institute of Organic Chemistry Lavrentjeva, 9, 630090 Novosibirsk, Russia Phone +7-383-3307864 Email [email protected] _______________________________________________________________________________