External Email - Use Caution        

Hello,

When running the pre.job script created from 

/Volumes/DANIEL/trac-all -bedp -jobs job -c /Volumes/DANIEL/dmrirc.long.example.sh


which I am trying to submit by running 


setenv FREESURFER_HOME /Applications/freesurfer/

source $FREESURFER_HOME/SetUpFreeSurfer.csh


foreach subj (AES101 AES102 AES104 AES107 AES108 AES109 AES110 AES111)

bedpostx_preproc.sh /Volumes/DANIEL/dti_freesurf/trac/Ex.${subj}.long.base_${subj}/dmri

bedpostx_preproc.sh /Volumes/DANIEL/dti_freesurf/trac/Rest.${subj}.long.base_${subj}/dmri


end
end

I get the following error.

[255a-280:/Volumes/DANIEL/dti_freesurf] amos% ./pre.job.sh

Copying files to bedpost directory

usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file

       cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory

/usr/local/fsl/bin/bedpostx_preproc.sh: line 79: [: -eq: unary operator expected

Done


Is this the incorrect way of trying to run trac-all -bedp in parallel? And if so how should I go about running the job scripts?


Best,

Daniel Callow
PhD Student, Neuroscience and Cognitive Science
Exercise for Brain Health Lab
University of Maryland, College Park
443-254-6298