rc script: (re)start hadcon at reboot - EPICS section
%begin bash%
#start EPICS IOC script in background
#P.Zumbruch, GSI, 28-05-2009
myHostname=$(hostname)
#mylist='etrax046 etrax047 etrax048'
mylist='etrax047 etrax048'
startBackgroundEpicsIOCScript=/home/hadaq/startBackgroundEpicsIOC.sh
for item in $mylist
do
if [ "$item" = "$myHostname" ]
then
[ ! -f ${startBackgroundEpicsIOCScript} ] && break;
export HOSTNAME=${HOSTNAME:=${myHostname}}
${startBackgroundEpicsIOCScript}
break;
fi
done
%end%
--
PeterZumbruch - 13 Jan 2010