Hi,
You can use the $HOME variable.
Philippe
-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch]
On Behalf Of ???
Sent: Sunday, August 05, 2007 5:46 PM
To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] Problem about .rootrc
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 thanone 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 Wed Aug 08 2007 - 19:33:47 CEST
This archive was generated by hypermail 2.2.0 : Thu Aug 09 2007 - 11:50:02 CEST