MATLAB: Am I unable to use CD with a symbolic link which points to a NFS mounted directory in MATLAB 7.0 (R14) on the Linux machine

cdlinkmountedmountingnfssymbolic

I have created a symbolic link at the root level which points to a NFS mounted drive /cea/dase as follows: job -> /cea/dase/job
I am unable to CD to directories using the symbolic link as follows:
cd /job/cssi/buresi
gives the error
??? Error using ==> cd
Cannot CD to /job/cssi/buresi (Name is nonexistent or not a directory).
Also although I start matlab in a different directory as shown below :
-bash-2.05b$ pwd
/job/cssi/buresi
-bash-2.05b$ matlab -nosplash -nojvm
MATLAB gives a different result for PWD after startup as shown below :
>> pwd
ans =
/usr/job/cssi/buresi

Best Answer

This happens because the AUTOMOUNT_MAP environment variable is not set correctly. In order to set this variable correctly, perform the following steps:
To see the value of this variable, start MATLAB with the -n flag as follows :
matlab -n
When starting MATLAB in this manner, you might see the following displayed:
-> r AUTOMOUNT_MAP = /cea/dase -> /usr
In order to workaround this issue, change this variable as follows :
setenv AUTOMOUNT_MAP ''