Yep, those changes make it work just fine.
> -----Original Message-----
> From: FSL - FMRIB's Software Library [mailto:[log in to unmask]] On Behalf
> Of Matthew Webster
> Sent: Friday, August 05, 2016 12:10 PM
> To: [log in to unmask]
> Subject: Re: [FSL] syntax of /etc/profile.d/fsl.csh
>
> Hi,
> Can you modify the fsl.csh in profile.d to read:
>
> if ( ${uid} != 0 ) then
> setenv FSLDIR /usr/local/fsl
> setenv PATH ${FSLDIR}/bin:${PATH}
> source ${FSLDIR}/etc/fslconf/fsl.csh
> endif
>
> and let me know if that fixes things?
>
> Kind Regards
> Matthew
>
> On 5 Aug 2016, at 16:33, Patty J Bragger-Wilkinson
> <[log in to unmask]> wrote:
>
> Thanks for your response!
>
> Here is the command I ran:
>
> [root@beethoven-vm profile.d]# /usr/local/fsl/doc/fsl/fsl_installer.sh -E FSL
> install script ==================
>
> Where is FSL installed? [/usr/local]
> Setting up FSL system-wide (will require administrator priviledges)...
> [OK] /bin/sh configured
> [OK] /bin/(t)csh configured
>
>
> Here is what it modified:
> [root@beethoven-vm profile.d]# cd /etc/
> [root@beethoven-vm etc]# find ./ -mmin -2 ./profile.d ./profile.d/fsl.csh
> ./profile.d/fsl.sh [root@beethoven-vm etc]# cat ./profile.d/fsl.csh # FSL
> Configuration if [ ${UID} -ne 0 ]; then setenv FSLDIR /usr/local/fsl setenv PATH
> ${FSLDIR}/bin:${PATH} source ${FSLDIR}/etc/fslconf/fsl.csh fi
>
> Thanks!
> Patty
>
> From: FSL - FMRIB's Software Library [mailto:[log in to unmask]] On Behalf
> Of Matthew Webster
> Sent: Friday, August 05, 2016 10:40 AM
> To: [log in to unmask]
> Subject: Re: [FSL] syntax of /etc/profile.d/fsl.csh
>
> Hello,
> This sounds odd - the fsl.csh in the FSL distribution shouldn’t try to use
> the value of UID, can you list the contents of the fsl.csh file?
>
> Kind Regards
> Matthew
>
> On 4 Aug 2016, at 19:32, Patty J Bragger-Wilkinson
> <[log in to unmask]> wrote:
>
> I’ve installed FSL on a linux box and performed the final step of setting it up for
> all users, but there seems to be some issues with the fsl.csh file that’s put into
> /etc/profile.d/
>
> It seems to actually not have cshell style syntax at all, and it assumes that UID is
> defined, which appears to not be set by default on our servers. Does anyone
> else have this problem? When a user with a default shell of csh logs in to the
> box, they get this error:
>
> UID: Undefined variable
>
> I’ve created a new file that seems to do what it needs to do, but I’m curious if
> others have run into this.
>
> Thanks,
> Patty
|