unix - Testing the hostname in a .cshrc -
I would like to fulfill my command .cshrc file on a host basis (.cshrc file is on a disk Which is shared by two different hosts.)
Assume that there are two hosts: login1.university.edu and login2.university.edu
I try this command Key:
if (hostname == 'login1.university.edu')) then from Route R_LIBS_USER /n/Users/me/R.login1 other setenv R_LIBS_USER / n / Users / me / R .login2
"itemprop =" text ">
To execute it Batam Toggle the hostname command with and compare the result. if (`hostname` == 'login1.university.edu') then Satellite R_LIBS_USER /n/Users/me/R.login1 and
Comments
Post a Comment