Hi Saad, When I type in: echo $SGE_ROOT, it says: SGE_ROOT: Undefined variable I assume I just copy the bedpost script into the bin folder? Here is the output: Massih/Tractography [mikulis4.uhnres.utoronto.ca:21]% bedpostx c_AH subjectdir is /scratch/Massih/Tractography/c_AH Making bedpostx directory structure Queuing preprocessing stages Queuing parallel processing stage 0 slices processed Queuing post processing stage /Applications/fsl414/bin/bedpostx: line 220: 67871 Terminated ${subjdir}.bedpostX/monitor Thanks, Massih