Hi – Is this on ubuntu by any chance? I remember it cropping up a while ago, and I think you had to change something in the first line of the script. It should be in the archives.

From: <freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of "Lars M. Rimol" <larilin@gmail.com>
Reply-To: Freesurfer support list <freesurfer@nmr.mgh.harvard.edu>
Date: Thursday, July 27, 2017 at 1:43 PM
To: FS maling list <freesurfer@nmr.mgh.harvard.edu>
Subject: [Freesurfer] problem with bedpostx

Hi,

Running trac-all -bedp and getting an error message I've never seen before. I'm running it on a desktop, not a cluster, which it warns agains - but it should still run, shouldn't it?


larsrim:~/lbkabel/tbi/morfometri_test$ trac-all -bedp -c DWI/jobscripts/d1_1001_local.dmrirc

INFO: SUBJECTS_DIR is /home/larsrim/lbkabel/tbi/morfometri_test
INFO: Diffusion root is /home/larsrim/lbkabel/tbi/morfometri_test/DWI/TRACULA/local
Actual FREESURFER_HOME /usr/local/freesurfer
WARN: Running bedbostx locally - this might take a while
WARN: It is recommended to run this step on a cluster
bedpostx_mgh -n 2 /home/larsrim/lbkabel/tbi/morfometri_test/DWI/TRACULA/local/1001_c1/dmri
/usr/local/freesurfer/bin/bedpostx_mgh: 131: /usr/local/freesurfer/bin/bedpostx_mgh: Syntax error: "(" unexpected





Sincerely yours,

Lars M. Rimol, PhD
Senior Researcher
Norwegian Advisory Unit for Functional MRI
Department of Radiology
St. Olav's University Hospital
7006 Trondheim 
Norway