source: fact/tools/Scripts/Logon

Last change on this file was 18336, checked in by daqct3, 9 years ago
Changed finding of own IP address in Logon script
File size: 528 bytes
Line 
1#!/bin/bash
2# This script should be sourced at log on (e.g. in .bashrc)
3
4# Set environment variables if not yet set
5if [ -z "$DIM_DNS_NODE" ]; then export DIM_DNS_NODE=ihp-pc49.ethz.ch; fi
6if [ -z "$DIM_HOST_NODE" ]; then export DIM_HOST_NODE=`ip route get 8.8.8.8 | awk '{print $NF; exit}'`; fi
7if [ -z "$DIMDIR" ]; then export DIMDIR=/usr/local/dim/; fi
8if [ -z "$QWTDIR" ]; then export QWTDIR=/usr/local/qwt/; fi
9
10#Set paths
11export LD_LIBRARY_PATH=$QWTDIR/lib:$DIMDIR/linux:$LD_LIBRARY_PATH
12export PATH=.:$DIMDIR/linux:$PATH
Note: See TracBrowser for help on using the repository browser.