SSH Login Error Message: MANPATH: Undefined variable man.csh

Server, When I Login From the Master to the client Node.
I got the following error message.d
[redhat5@master ~]$ ssh node6
Last login: Tue Jan 25 11:45:11 2011 from node1.modeling.in
MANPATH: Undefined variable.
[redhat5@node6 ~]$
Reason
MANPATH VARAIBLE is declare but these value is not assign.
SOLUTION
So create the man.csh file under the /etc/profile
csh refers to the C ShellSSH Login Error Message
#/etc/profile.d/man.csh
cat man.csh
if ($?MANPATH) then
setenv MANPATH "${MANPATH}:/usr/man"
else
setenv MANPATH "/usr/man"
endif
setenv command is used to set environment variable.
After create the file then again try it.
It will work perfectly.MANPATH: Undefined variable.

Related post