Problem about .rootrc

From: ÑîËÕÁ¢ <yangsuli_at_pku.edu.cn>
Date: Mon, 06 Aug 2007 06:46:12 +0800

  	Hi,everyone
               I have modified .rootrc and rootlogon.C to specify what
to do in a beginning of a root session.
               But here's the problem: the /home is mounted by more than
one machine using nfs in my subnet. Since different machines has different configuration,I am wondering if there is a way to specfy what to do according to the machine I am on? For example, in the .bashrc, I can do the following:
               host=`hostname`
               if [ $host = "myhost1" ] then ...........
               else ......

Is there a similar way to achieve this with .rootrc? Thanks!                                                                        

    Yang Suli Received on Mon Aug 06 2007 - 00:46:20 CEST

This archive was generated by hypermail 2.2.0 : Wed Aug 08 2007 - 23:50:02 CEST