Dear Aditya, You need to mv the original atlasquery file to atlasquery_bin (that is, rename the file). Then you need to make a *new* file called atlasquery, and it is in this new file that you put the text I sent (e.g., using a text editor). You'll also need to run: chmod 755 $FSLDIR/bin/atlasquery to make it able to be run (i.e. executable). Also note that there was a problem with my original script (which is to be the file atlasquery). The script below is a fixed version of the original. All the best, Mark #!/bin/sh if [ `uname` = "Darwin" ] ; then DYLD_LIBRARY_PATH=${FSLDIR}/bin/fslview.app/Contents/Frameworks export DYLD_LIBRARY_PATH ${FSLDIR}/bin/atlasquery_bin "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9" "$10" fi if [ `uname` = "Linux" ] ; then LD_LIBRARY_PATH=${FSLDIR}/lib:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH ${FSLDIR}/bin/atlasquery_bin "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9" "$10" fi On 28 Jul 2011, at 18:14, Aditya Kumar Kasinadhuni wrote: > Can you please tell me how I can put that code into that file? I am trying to open it with a text editor but that fails. > > Also is the first command supposed to cp as opposed to mv? I am confused as after that the file is renamed and the file atlasquery no longer exists. Or is it that the changes have to be made to the atlasquery_bin file? > > Thank you >