Problem bypassing `main.sh` by calling `exec` instead of `run`
Full error message:
% singularity exec /mnt/build/cat.simg /code/cat_standalone.sh -b /home/mih/cat_standalone_segment.txt /home/mih/sub-01_T1w.nii
...
02-Jun-2020 11:01:04 - Failed 'CAT12: Segmentation'
Error using copyfile
Unknown shell error 32512
In file "/code/SPM/spm12_mcr/home/gaser/gaser/spm/spm12/toolbox/cat12/cat_run_newcatch.m" (???), function "cat_run_newcatch" at line 218.
In file "/code/SPM/spm12_mcr/home/gaser/gaser/spm/spm12/toolbox/cat12/cat_run.m" (???), function "run_job" at line 842.
In file "/code/SPM/spm12_mcr/home/gaser/gaser/spm/spm12/toolbox/cat12/cat_run.m" (???), function "cat_run" at line 451.
The following modules did not run:
Failed: CAT12: Segmentation
Execution failed: /tmp/cat_24760.m
Bye for now...
Error using MATLABbatch system
Job execution failed. The full log of this run can be found in MATLAB command window, starting with the lines (look for the line showing the exact #job as displayed in this error message)