#!/bin/sh # # Set up the environment for the ndbm databse # BASE_DIR=`grep dserver /etc/passwd | cut -d : -f 6` if [ $BASE_DIR ] then # # Set directory fot database files # DBM_DIR=$BASE_DIR/dbase/dbm export DBM_DIR # # Set directory for resource files # RES_BASE_DIR=$BASE_DIR/dbase/res export RES_BASE_DIR else echo "The login dserver must be defined in the /etc/passwd file" exit fi # # Only the DBTABLES variable must be adapted to each control system # change IDxx to the correct beamline name # DBTABLES=NAMES,PS_NAMES,CLASS,SYS,ERROR,CMDS,ID10,SEC export DBTABLES # #