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) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -