#!/bin/sh if fuser -s iocK1.log; then echo Another copy of Epics process running already\! exit 1 fi ./k1iopioo0epics k1iopioo0epicsK1.cmd > iocK1.log 2>&1 & echo k1iopioo0epics K1 IOC Server started