Babar logo
HEPIC E,S & H Databases PDG HEP preprints
Organization Detector Computing Physics Documentation
Personnel Glossary Sitemap Search Hypernews
Workbook Home Introduction Account Setup QuickTour Packages Modules Unwrap page!
Event Information Tcl Commands Editing Compile and Link Run the Job Debugging
Check this page with the
W3C Validator
(More checks...)
Parameters Tcl Files Find Data Batch Analysis ROOT Tutorial

Users with Existing bsh, bash, korn or zsh Accounts

The following instructions tell you how to set up HEPiX for an already existing account using bsh, bash, korn or zsh.

Users with new accounts should instead follow the instructions in Logging In.

Users with already existing accounts using csh and tcsh should instead follow the instructions in for Users with Existing csh and tcsh Accounts

Do not log out after you make these changes. Keep the existing session up and start a new session to check that your log in still works properly. If the new log in has problems, you will want your original session to make any corrections.

To repeat: after you make the changes, do not log out until you have tested them with a separate session.

Copy your $HOME/.profile and any other files our configuration may use just in case you need to go back to them:

   > cd $HOME
   > cp .profile original.profile

Create the directory .hepix and insert the file that identifies babar as the preferred group. This will cause the BABAR-specific environment to be established.

   > mkdir $HOME/.hepix
   > cp /afs/slac/g/babar/etc/hepix/Newuser/preferred-group $HOME/.hepix

If your shell has a resource dot file such as $HOME/.bashrc, add the following lines at or near the beginning:

   if [ -r /usr/local/lib/hepix/ ]; then
     . /usr/local/lib/hepix/

If you currently call the SLAC environ script, remove it. This obsolete code may look like:

   eval `/usr/local/bin/environ /bin/ksh -i${?prompt} motif -e emacs:vi`

If you currently call the BABAR login scripts in your resource files or any Bourne shell equivalents you created, remove them. This obsolete code may look like the following:

   source $BFROOT/dist/releases/current/SoftRelTools/

Add the following code at or near the beginning of your .profile file:

   if [ -r /usr/local/lib/hepix/ ]; then
     . /usr/local/lib/hepix/

This completes the HEPiX setup.

Test the new setup from a separate session before you log out.

If you need to back out of the changes, restore your original $HOME/.profile:

   > cd $HOME
   > cp original.cshrc .cshrc
Likewise restore any other changed configuration files.

Once you have demonstrated that you can open a new session, exit the old session.

Back to Logging In