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

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -